List a category except the shows that are Hide From Upcoming Events List

Home Forums Calendar Products Events Calendar PRO List a category except the shows that are Hide From Upcoming Events List

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #19322
    Javier
    Participant

    I need to create a list of events of a category. I am using this:
    ‘all’,
    ‘posts_per_page’=>10,
    ‘tax_query’=> array(
    array(
    ‘taxonomy’ => ‘tribe_events_cat’,
    ‘field’ => ‘slug’,
    ‘terms’ => ‘ofertas’
    )
    )
    )
    );

    foreach($all_events as $post) {
    setup_postdata($post);
    ?>

    To list the category sluf Ofertas, but I need to hide the shows that are Hide From Upcoming Events List, what can I do??

    thanks

    #19342
    Rob
    Member

    Hey Javier…so are you just trying to incorporate something that will hide events marked as “Hide From Upcoming” into the code you’ve provided here?

    #19350
    Javier
    Participant

    Yes!! That’s it, or maybe that code is erong. Can u provide a code that works??

    Thanks

    #19354
    Jonah
    Participant

    Hi Javier,

    All you need to do is pass in ‘eventDisplay’=>’upcoming’ as an argument and this by default hides those events with the “Hide From Upcoming” checked.

    I hope that helps but let me know if you need anything else.

    Cheers,
    Jonah

    #19672
    Javier
    Participant

    thanks guys!!!

    #19707
    Rob
    Member

    Glad to be of service, Javier. Thank YOU for your ongoing support and awesome ideas.

    #976936
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘List a category except the shows that are Hide From Upcoming Events List’ is closed to new replies.