Hide events from some event listings display in category

Home Forums Calendar Products Events Calendar PRO Hide events from some event listings display in category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1202573
    liblogger
    Participant

    Is there a way to limit events from some – but not all – of the event listings pages? Specifically, I’m looking for a way to hide events from the main event views, but display them on an events category view.

    #1202960
    Cliff
    Member

    Hi again.

    This sounds very possible via CSS, but the CSS approach may cause unintended consequences. For example, if the List View displays 10 events but then 3 are hidden according to your CSS, only 7 will appear on Page 1 of List View. When you click to previous/future events in List View, then you might be displaying 10 or fewer again.

    If you wanted to go the PHP route, you might be able to use tribe_get_events() and then pass those event IDs through to post__not_in (probably one of several ways this could be accomplished). It may also be helpful to utilize tribe_is_event_query().

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1203051
    liblogger
    Participant

    Thanks for your response – I will have a look at the templates.

    #1203341
    Cliff
    Member

    Sounds good. Have a good day.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide events from some event listings display in category’ is closed to new replies.