Tribe Get Events Upcoming V3.1

Home Forums Calendar Products Events Calendar PRO Tribe Get Events Upcoming V3.1

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #69855
    Andy
    Participant

    I just updated to 3.1 and everything is running faster, but I have found a small problem. I use
    tribe_get_evetns in a shortcode to pull up a list of upcoming workshops with a specific tag associated with them. This has always worked up until now. It returns all posts with that tag as well as past events. Funny that it still works with past events, and when I specify a venue. What could be the problem?

    Here is my code

    $all_events = tribe_get_events(
    array(
    ‘eventDisplay’=>’upcoming’,
    ‘posts_per_page’=>-1,
    ‘tax_query’=> array(
    array(‘taxonomy’ => ‘post_tag’,
    ‘field’ => ‘slug’,
    ‘terms’ => $atts[‘code’])
    ))

    #69987
    Andy
    Participant

    The problem seems to be caused by tax_query, it seems to be querying all posts and events when I add that. Using tribe_get_events for a specific venue or just any upcoming event works fine. Any ideas why this would stop working?

    #70065
    Barry
    Member

    Hi Andy,

    I think you are right and perhaps the taxonomy query is taking precedence and perhaps causing other query properties to drop … we’ll make a note to look into this – and sorry for the inconvenience in the meantime 🙂

    #70497
    Annie Christensen
    Participant

    I needed to do something similar and got it to work by using the brief form of the taxonomy query arg:
    ‘post_tag’ => ‘featured’

    #70654
    Barry
    Member

    Thanks seattleunity: Andy does that provide you with a viable workaround at all?

    #70736
    Andy
    Participant

    Hmm that doesn’t seem to be working. Same problem.

    #70888
    Barry
    Member

    OK, that’s unfortunate. I have filed a bug report and we’ll definitely look into resolving this – in the interim I’m afraid you’ll need to devise a different workaround.

    #70893
    Andy
    Participant

    Thanks Barry. I’ve figured out an ugly workaround involving WPQuery, post types and date comparisons. Does the job, just not as elegant as ‘upcoming’.

    Andy

    #70901
    Barry
    Member

    Glad you figured out a solution 🙂 and we’ll hopefully have a chance to investigate and make any changes that might be necessary in our codebase as we prepare our next few maintenance releases.

    I’ll go ahead and close this thread for the time being, though. Thanks!

    #74874
    Kelly
    Participant

    Hi, folks. This is just a note to let you know that we didn’t get a chance to look at your issue for our maintenance release this time around.

    We do plan to find a way to help you out with this. We look forward to addressing this as soon as we’ve got bandwidth/resources to allow it.

    Thanks for being part of the TEC community!

    #82351
    Leah
    Member

    Hey there,

    I just wanted to let you know that a fix for this issue is included in our upcoming version 3.3. Keep an eye out on your WordPress Plugins page for an update. Thanks for your patience while we worked on this!

    Cheers,
    Leah

    #982784
    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 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Tribe Get Events Upcoming V3.1’ is closed to new replies.