Home › Forums › Calendar Products › Events Calendar PRO › Tribe Get Events Upcoming V3.1
- This topic has 11 replies, 6 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
October 8, 2013 at 9:51 am #69855
Andy
ParticipantI 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’])
))October 8, 2013 at 7:15 pm #69987Andy
ParticipantThe 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?
October 9, 2013 at 7:37 am #70065Barry
MemberHi 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 🙂
October 10, 2013 at 10:38 pm #70497Annie Christensen
ParticipantI needed to do something similar and got it to work by using the brief form of the taxonomy query arg:
‘post_tag’ => ‘featured’October 11, 2013 at 3:04 pm #70654Barry
MemberThanks seattleunity: Andy does that provide you with a viable workaround at all?
October 12, 2013 at 11:15 am #70736Andy
ParticipantHmm that doesn’t seem to be working. Same problem.
October 14, 2013 at 10:06 am #70888Barry
MemberOK, 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.
October 14, 2013 at 10:35 am #70893Andy
ParticipantThanks 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
October 14, 2013 at 10:49 am #70901Barry
MemberGlad 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!
November 5, 2013 at 3:19 pm #74874Kelly
ParticipantHi, 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!
December 17, 2013 at 1:56 pm #82351Leah
MemberHey 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,
LeahJuly 7, 2015 at 6:30 am #982784Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Tribe Get Events Upcoming V3.1’ is closed to new replies.
