Modify Related Events Criteria – Exclude Category

Home Forums Calendar Products Events Calendar PRO Modify Related Events Criteria – Exclude Category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #110224
    inhouse
    Participant

    Hello, we are using an event category called “Home Featured” to drive the Events List widget to display featured events on the home page. The problem is that this is causing related events to be related if they share the Home Featured category.

    Is there a way to exclude a category from the related events criteria?

    Should we instead be using a different method to display featured events on the home page so that this new category isn’t needed?

    Thanks for any help!

    #110267
    inhouse
    Participant

    I thought about using my own wp_query or get_posts but this would load all past events as well.

    #110802
    Barry
    Member

    Great question.

    An avenue you might explore is changing the existing query logic via a filter (and we have one for this very purpose) – tribe_related_posts_args – and basically you would receive an array containing the arguments that our own code sends onward to WP_Query and have a chance to introduce new arguments or change existing ones.

    Does that help at all?

    #119722
    Barry
    Member

    I’ll go ahead and close this thread: if we can assist with anything else please don’t hesitate to create a new thread and one of the team will be happy to help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Modify Related Events Criteria – Exclude Category’ is closed to new replies.