Home › Forums › Calendar Products › Events Calendar PRO › Display All Events at a particular venue PHP problem
- This topic has 8 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 18, 2013 at 7:49 am #55852quantafireParticipant
Hi all,
I am trying to get a particular page to display classes in a certain category (‘omclass-2) to display ONLY for a certain venue (468). I have took a bash at the code but I’m no expert. I’ve copy-pasted it below. Can anyone help? I’d love to nail this! I know I’m close but I can’t seem to get the right code to have it JUST show the events I need for ONE venue.'upcoming',
'venue'=> '468',
'posts_per_page'=>10,
'tax_query'=> array(
array(
'taxonomy' => 'tribe_events_cat',
'field' => 'slug',
'terms' => 'omclass-2'
) );
foreach($get_posts as $post) { setup_postdata($post); ?><a href=”” id=”post-“>
<a href=””>ID, true, ‘M j, Y’); ?>July 18, 2013 at 7:50 am #55853quantafireParticipant‘upcoming’,
‘venue’=> ‘468’,
‘posts_per_page’=>10,
‘tax_query’=> array(
array(
‘taxonomy’ => ‘tribe_events_cat’,
‘field’ => ‘slug’,
‘terms’ => ‘omclass-2’
) );
foreach($get_posts as $post) { setup_postdata($post); ?><a href="” id=”post-“>
<a href="”>ID, true, ‘M j, Y’); ?>July 18, 2013 at 7:51 am #55854quantafireParticipantI can’t seem to post the code I need to display… 🙁
I’ll resort to a good old fashioned screenshot:
http://www.screencast.com/t/Tul8DasP87oJuly 19, 2013 at 9:37 am #56112JonahParticipantJuly 20, 2013 at 1:03 pm #56222quantafireParticipantJonah,
It didn’t work. Did I do something wrong? This is what I have in its totality: http://snippi.com/s/h3v8k3o
Thanks for your help!July 20, 2013 at 1:17 pm #56224quantafireParticipantOh hang on. It looks like it did work. The problem is that I need it to display only certain aspects of each event. It looks like the tribe_include_view_list function has its own type of output. I will need to add in custom fields of my own so I need to have a little more customization over it. I’m sure that is still possible? Thanks again!
July 20, 2013 at 1:28 pm #56226quantafireParticipantOK, I just reverse engineered your code and looked at a previous category display example…and I did it 🙂
In case you’re interested: http://snippi.com/s/rywym5fJuly 21, 2013 at 9:27 am #56254JonahParticipantLooks good quantafire, thanks for sharing your code snippet! Are you all set here then?
– Jonah
July 7, 2015 at 6:27 am #979964Support DroidKeymasterThis 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 ‘Display All Events at a particular venue PHP problem’ is closed to new replies.