tribe_get_events and Relevanssi search

Home Forums Calendar Products Events Calendar PRO tribe_get_events and Relevanssi search

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1336651
    Tom
    Participant

    I’m creating a custom search page for events and trying to pass search queries to tribe_get_events. I’m using the Relevanssi plugin to improve search results, but while it is activated, no event search results are found. Events have been indexed in the Relevanssi settings. My query is:

    $args = array(
    	'paged' => ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1,
    	's' => $searchTerm,
    	'posts_per_page' => -1,
    );
    $events = tribe_get_events( $args );

    Has anyone else come across this? Any help would be much appreciated.

    #1337585
    Patricia
    Member

    Hey Tom,

    Thank you for reaching out to us!

    We unfortunately don’t have the necessary experience to help you with this specific query.

    A piece of advice I can give you, is to make sure that “tribe_events” is not excluded from search by default. If the event custom post type is being excluded, head over to “Relevanssi -> Exclusions and restrictions -> Respect exclude_from_search for custom post types” and uncheck the box.

    Also, I would recommend you posting this same question to the Relevanssi folks to see if they have any insight on how to setup this custom query.

    I wish you the best of luck with your searching! Let me know if you need anything else in the mean time and I’ll be happy to assist!

    Regards,

    Patricia

    #1347121
    Support Droid
    Keymaster

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_get_events and Relevanssi search’ is closed to new replies.