hiding venue (or other info) from search

Home Forums Calendar Products Events Calendar PRO hiding venue (or other info) from search

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1012321
    eqstl
    Participant

    we noticed that all the event data shows up in the sitewide wordpress search – so i am guess that post type is set to “True” for searching in some way. Any way to remove just the venue or other components from the search? we really don’t want the venue showing up but general knowledge is also of use.

    #1012510
    Geoff
    Member

    Hi @Jen,

    Good question. You can limit WordPress search to specific post types if you’d like. Here’s a blog post with a good example of how to do that with a snippet in your theme’s functions.php file. The example there will ensure that only Pages and Posts are returned in search.

    Does this make sense? Will it work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1012941
    eqstl
    Participant

    yes – but can we hide just the venue? but keep the event? i thought the venue was a part of the event post itself? i guess I am not clear on where it is stored in the WP database.

    also, should i make any changes through a hook rather than change the original functions file?

    #1012968
    Geoff
    Member

    Ah yes, you could add tribe_events to the array so that it returns events an no venues instead.

    I think the functions.php file will be the best route here since it is theme-specific, though you could roll it into a standalone plugin if you would prefer.

    Thanks!
    Geoff

    #1017267
    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 ‘hiding venue (or other info) from search’ is closed to new replies.