Show only one recurring event in WP search results

Home Forums Calendar Products Events Calendar PRO Show only one recurring event in WP search results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1316196
    Nico Rettinger
    Participant

    Hello,

    i have the same problem as described here: https://theeventscalendar.com/support/forums/topic/recurring-events-dominate-site-search-results/:

    In my WP Search Results, all recurring events are listed and dominate the results and the pages are pushed behind.

    And the answer from Barry worked great, but in my case there are also some Sub-Pages which must be in the results, so the post_parent-Option can not be 0. Is there any solution that only the next one of the recurring events is shown?

    Thanks for your answers!

    Greets
    Nico

    ========================
    PLEASE LEAVE FOR SUPPORT
    Reporting the same issue as: https://theeventscalendar.com/support/forums/topic/recurring-events-dominate-site-search-results/

    #1316616
    Victor
    Keymaster

    Hello Nico!

    Thanks for reaching out to us!

    I tried modifying that snippet but there isn’t a straight way of doing so. I will reach the team to see if someone can think of a way to achieve what you are looking for.

    I do want to note that we are fairly limited in how much we can support custom development questions like this. That said, we’d be happy to at least point you in the right direction as best we can, but it may take us a day or more to get back to you depending on our availability.

    We also have a list of freelancers who we would happily recommend for this level of help.

    Best,
    Victor

    #1317057
    Victor
    Keymaster

    Hi Nico!

    Just wanted to let you know that the code snippet from that other topic is a good starting place, but allowing child pages to be included in the query is more complex and will require extra where clauses to be injected into the query.

    This is of course custom coding territory, which we do not support. As a reference, you can see here https://codex.wordpress.org/Class_Reference/WP_Query for the parameters that could be used in the query.

    I hope that helps you get started.

    Best,
    Victor

    #1327494
    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Show only one recurring event in WP search results’ is closed to new replies.