Forum Replies Created
-
AuthorPosts
-
helloodds
ParticipantThanks, Geoff. Unfortunately that didn’t work out either. Thanks for your help though.
helloodds
ParticipantThanks Geoff – I did indeed forget to reset the query! Thanks for pointing that out. I’ve added it in, but it didn’t effect any of the filter output.
So, can filtering tribe_events_cat be used with the eventDisplay call? I tried the adding eventDisplay=>upcoming in as part of an array, but it doesn’t seem to effect anything. The drop down still shows categories that have events which only appear in the past (outputting no results). I understand that you can’t help with custom dev questions, so if you can’t answer, that’s fine. Perhaps someone else in the forum is able to point me in the right place. Thanks again for your reply and willingness to point me in a direction.
helloodds
ParticipantHi Geoff – thanks a bunch for your response! I actually went a different route since I preferred to output the events in a WP template. I have my list working, but I’ve run into one snag that I’m hoping that someone could help me trouble shoot.
So I’ve used a query to output all upcoming events in a specific category – Classes. I’ve also created a filter (select menu) to view by category, excluding all but the sub category of Classes. The problem is if there’s an event that has occurred in the past, but placed into one of the categories, it shows in the filter. However, my query only lists upcoming events – so if I select a category that doesn’t have an upcoming event, nothing shows. In other words, my filter is showing all events placed in categories, whereas my query is showing only upcoming events. I’d like for the list to only show the categories with upcoming events. I hope this makes sense.
Here is my code: http://pastebin.com/jUZDNtSq
I feel I am close and am missing something small, but just can’t figure out how to make the connection. Any help would be greatly appreciated.
Thanks!
helloodds
ParticipantOh, silly me, I figured it out! If anyone else is ever looking…
<?php if (count($posts) == 2) : ?>my_style<?php endif; ?>helloodds
ParticipantPerfect! That worked – thank you so very much.
helloodds
ParticipantHey – thanks so much! That resolved my original still showing, but it’s still showing a long list of related items, instead of only 3. Here’s my new pastebin: http://pastebin.com/yWU0r3JD
Thanks a bunch for your help.
-
AuthorPosts
