Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5847
    there there
    Participant

    Hello,

    I’m getting all the events with WP_Query, but can’t figure out a way to hide the ocurrences.

    Seems the show_ocurrences = False arg is not working.

    Thanks for the help.

    #5849
    Bartosz
    Keymaster

    Do you have this set as well in your WP_Query?

    'suppress_filters' => false,

    #5857
    there there
    Participant

    That’s what i have now and occurrences keep showing up, i want to hide them:

    $args = array(
    ‘post_type’ => ‘event’,
    ‘ignore_sticky_posts’ => 1,
    ‘posts_per_page’ => (int) $module[‘number’],
    ‘order’ => ‘ASC’,
    ‘event_show_past_events’ => false,
    ‘suppress_filters’ => false,
    ‘show_occurrences’ => false,

    #5858
    Bartosz
    Keymaster

    change this to:
    ‘event_show_occurrences’ => false

    #5862
    there there
    Participant

    many thanks! that was what i was looking for! :)

    #7100
    permanyer
    Participant

    That helped me!!

    I could not find this param elsewhere, in wp_query doc page, for instance.
    Thanks for this post anyway!!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.