Adding event Search to main WordPress Search

Home Forums Calendar Products Events Calendar PRO Adding event Search to main WordPress Search

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30863
    Robert
    Member

    I was wondering if I could get some assitance with the search on my site. I have a search that utilizes the “wp_dropdown_categories( ‘show_option_all=All Categories’ );” function to allow the user to select a category to find search results in. Since Events is a custom post type, is there anyway to incorporate events within my search selection dropdown? Is the way I am doing this efficient for what I want to accomplish or is there a different way?

    #30876
    Jonah
    Participant

    Hi Robert,

    You’ll need to modify your search to include the events category taxonomy ‘tribe_events_cat’. You can modify wp_dropdown_categories() to use this taxonomy. See the doco on http://codex.wordpress.org/Function_Reference/wp_dropdown_categories for more info. Unfortunately we won’t be able to help with you with this. You’ll need to figure it out on your own or hire someone to help you.

    Good luck!

    – Jonah

    #30877
    Robert
    Member

    Thanks Jonah! I appreciate the direction. I am going to give this a crack.

    #30879
    Robert
    Member

    One more quick question. If i didn’t want all of the Categories under Events and instead wanted just Events which acts as the parent for all categories, what would I do?

    i.e. ‘tribe_events_cat’ <==== gives me all categories
    instead is there a 'tribe_events' that will give me just "Events" as an option?

    #30888
    Jonah
    Participant

    Hi Robert,

    I think you can use the ‘hierarchical’ argument to only go to a certain depth with your categories. Otherwise you could also do a query to get ID’s of child categories and then pass those in the ‘exclude’ argument. Does that help?

    – Jonah

    #978431
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding event Search to main WordPress Search’ is closed to new replies.