Home › Forums › Calendar Products › Events Calendar PRO › Ability to search for Organizers with keywords
- This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by
George.
-
AuthorPosts
-
October 19, 2015 at 4:04 pm #1016011
John
ParticipantHello,
I’ve had no luck finding anything in the knowledge base or forums. I have tried a couple of ways to get a list of organizers via a search function (WP_Query mainly). I’ve had no luck, even when using
$query->set('post_type', array('tribe_events', 'tribe_organizer', 'tribe_venue'));I’m able to find events but unable to find venues or organizers (though I only need organizers).
I’ve not disabled plugins or reverted to the latest theme, as it will not be an option to drop anything this late in development.
Any suggestions or recommendations would be appreciated.
Thanks!
October 19, 2015 at 5:07 pm #1016037George
ParticipantHey @David,
I’m sorry that things haven’t been working as intended!
Can you elaborate on exactly what your goal is here? For example, what’s the whole context for the line of code you shared? If possible, post the entire code in which that line of code resides – I’ll take a look and see what’s going on.
I only ask for elaboration because you use the word “search”, but in your post you also said this:
I have tried a couple of ways to get a list of organizers via a search function
So are you actually dealing with a search form and such, i.e. a site search for users to use; or are you just trying to get a list of Organizers to show up statically on a page?
Finally, for now, you are using outdated versions of the plugins. Your System Information says you’re using Events Calendar Pro and The Events Calendar version 3.10.1 – as of this writing, Events Calendar Pro is at version 3.12.4 and The Events Calendar at 3.12.3.
We do not offer any support for custom code here, but I will do my best to help based on your responses to some of my questions above. I’d also really encourage updating to the most recent versions! 🙂
Cheers,
GeorgeOctober 20, 2015 at 4:23 pm #1016420John
ParticipantGeorge,
I found that I needed multiple WP_Query’s and merged them together. The purpose was to allows users to search by event name or the organizer… so if something matched the organizer I needed to present all events (even if they didn’t match the search term).
Thanks for the comments about updating… I’ll do so soon!
Take care!
October 21, 2015 at 11:48 am #1016665 -
AuthorPosts
- The topic ‘Ability to search for Organizers with keywords’ is closed to new replies.
