query by wordpress category

Home Forums Calendar Products Events Calendar PRO query by wordpress category

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #984636
    Catherine Lennon
    Participant

    Hello
    although i have found this thread

    Query parameter for category


    for the same issue i have a problem querying for tribe events with the category parameter. I am trying for example to get all events under a category (not events category) and instead i get all events
    Here is the code

    $args = array(
    ‘post_type’ => ‘tribe_events’,
    ‘taxonomy’=>$category,
    ‘orderby’ => ‘event_date’,
    ‘order’ => ‘DESC’,
    );

    query_posts($args);

    Can you give me a hint? On another notice, i find it a bit confusing using the documentation as a lot of deprecated functions still appear there and not all options and parameters are listed for the functions. Am i missing something?

    Thanks

    #984747
    Geoff
    Member

    Hi there, Catherine!

    Good question. Here’s a different example that shows an alternate way to query events, including by specific taxonomy. Will that help?

    Sorry the documentation wasn’t very helpful for you here. Do you have some ideas how we might improve that — for example, how about splicing off deprecated functions from current ones visually?

    Cheers and thanks for the feedback!

    Geoff

    #989319
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘query by wordpress category’ is closed to new replies.