Search blog posts
-
Hi! I want to create a function to allow people to search my posts, and only my posts. I’d also like a way to show the categories on the top of my blog section. Help, please? Thanks
WP.com: Yes
Correct account: YesThe blog I need help with is: (visible only to logged in users)
-
Hi there,
I want to create a function to allow people to search my posts, and only my posts.
This isn’t possible with the default WordPress Search feature that’s built into WordPress.com. That will return results from posts and pages.
With the paid Jetpack Search add-on we offer on WordPress.com this is possible, but you need to add a custom PHP code snippet to your site to add that kind of automatic filtering to your results:
Adding custom PHP snippets like that is only possible on our Business Plan.
I’d also like a way to show the categories on the top of my blog section.
Are you speaking of https://bookhangoverdudettes.wordpress.com/posts/? It looks like you already have a Categories block added to that page, underneath your Tag Cloud block, and it’s displaying the one category, Book Reviews, that you already have a post in. As you publish posts in more categories, those categories will also appear.
There isn’t an option to have categories display the way tags display in the tag cloud widget – the category block simply lists the categories. You can see the options that are available for this block here:
https://wordpress.com/en/support/wordpress-editor/blocks/categories-block/
-
Thanks :) I was able to fix the second problem after a while of searching, as you can see. Its unfortunate that I can’t have a search function-I just think it would be easier for readers to find the book they’re looking for faster, rather than scrolling through posts. Thanks for letting me know.
Regards,
Ember
- The topic ‘Search blog posts’ is closed to new replies.