How to add a search page
-
I’d like to create a search page but I don’t see any way to do this. What I’ve found online involves creating a search template page with PHP and I’d be happy to do this if it’s supported.
The blog I need help with is: (visible only to logged in users)
-
Assuming your post is about the site listed above, it looks like you already found the search widget that I was about to recommend to you.
Does that meet your needs?
-
The search widget is part of the right column so it’s incidental. I was trying to create a search form in a post or page.
-
Sounds like more of a WordPress.org thing than a WordPress.comthing, with wanting to work with PHP code.
Per this found on the Custom Design Page:
Customize allows you to edit fonts, colors, and CSS only. You can change the appearance of a theme, but not its HTML markup or PHP code. If you require this functionality, please consider moving your blog to a web host that supports theme code modifications. You can read more about why here, and find a suitable host here.
For high-level information on how WordPress.com and WordPress.org differ, please view this page: https://en.support.wordpress.com/com-vs-org/
If you would like a staff member to review this, consider giving this post the modlook tag.
How do I get a Moderator/Staff reply for my question?
Some issues require staff member help. If you see or add a thread that you know needs staff intervention, you can add the modlook tag to the tags area of the thread to make sure we see it. -
The users on wordpress.stackexchange.com redirected me here. Last time I was on WordPress.org they redirected me to here but I’ll ask anyway.
-
I was trying to create a search form in a post or page.
That’s not possible on any wordpress.COM hosted site. It’s only possible on a wordpress.ORG software install on paid hosting. See: Moving to self hosted WordPress https://en.forums.wordpress.com/tags/moving-to-self-hosted-wordpresscom
-
WordPress.COM users have code restrictions. No JavaScript, no form codes, except these https://en.support.wordpress.com/forms/contact-form https://en.support.wordpress.com/forms/, no tracking codes, no advertising codes, and no unsupported embeds including iframes can be used on any wordpress.COM hosted sites.
Please read:
https://en.support.wordpress.com/code/
allowed HTML tags list – https://en.support.wordpress.com/code/#html-tags
https://en.support.wordpress.com/code/#javascript
- The topic ‘How to add a search page’ is closed to new replies.