Loop with WP_query doesn't work

Home Forums Welcome! Pre-Sales Questions Loop with WP_query doesn't work

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1359400
    renaud maupoux
    Participant

    I try to filter events by events categories. I thought it was like taxonomy by it doesn’t work :
    Can someone give me a help

    $args = array( ‘post_type’ => ‘tribe_events’,
    ‘posts_per_page’ =>-1,
    ‘eventDisplay’ => ‘custom’,
    ‘tax_query’ => array(
    array(‘taxonomy’ => ‘cinema’,
    ),
    ),
    );
    // the query
    $the_query = new WP_Query( $args ); ?>

    #1359406
    renaud maupoux
    Participant

    I changed tax-query and put my category name at the right place :

    ‘tax_query’=> array(
    array(
    ‘taxonomy’ => ‘tribe_events_cat’,
    ‘field’ => ‘slug’,
    ‘terms’ => ‘cinema’
    )
    )

    #1359660
    Caroline
    Member

    Hi Renaud,

    Thanks for taking the time to follow up on your question here–glad to hear that you’ve gotten this issue resolved! I’m going to go ahead and close this thread out, but please don’t hesitate to follow up with a new thread in our Events Calendar PRO forum if there’s anything else we can do to assist! 🙂 Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Loop with WP_query doesn't work’ is closed to new replies.