Want to remove events on calendar from search results

Home Forums Calendar Products Community Events Want to remove events on calendar from search results

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33169
    Wendy
    Member

    When I use the search bar, the events from the calendar show up as results and it skews the look of the results for my theme. I would like to remove the events on the calendar from the search results. How do I accomplish this?

    #33175
    Casey
    Participant

    Wendy,
    Thanks for reaching out! You should be able to add the following code to your theme’s functions.php file and it will only show search results for posts & pages: https://gist.github.com/ckpicker/5013681

    Let me know if that does the trick!

    #33253
    Wendy
    Member

    Casey,
    Thank you so very much! The code you provided worked beautifully! All is back to normal and I am very impressed with the quick response.
    Wendy

    #33254
    Casey
    Participant

    Wendy,
    Great! Thanks for confirming that this got you sorted. Unless you disagree, I’m going to mark this thread “Answered” and close it out.

    We really appreciate your support and please let us know if you need anything else in the future. If you find yourself with a few minutes and would be so kind as to give us a “Works” rating or a positive star voting on the WordPress.org repo (http://wordpress.org/extend/plugins/the-events-calendar/), or even a shoutout to your followers on Facebook or Twitter, it would mean a lot to us. Thanks again for using the plugin.

    #978686
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Want to remove events on calendar from search results’ is closed to new replies.