How do I keep the event listings from showing when a reader searches for something on my site using the general search bar? I want that search to only result in an archives of my blog posts not blog posts and event listings.
Thanks for getting in touch! Let me help you with this topic.
You can customize the WordPress search to only search for posts and pages using the following code snippet, that you can paste in your theme’s functions.php file:
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Event Listings in Search Results’ is closed to new replies.