Display All Events at a particular venue PHP problem

Home Forums Calendar Products Events Calendar PRO Display All Events at a particular venue PHP problem

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #55852
    quantafire
    Participant

    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’); ?>

     

    #55853
    quantafire
    Participant

    ‘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’); ?>

    #55854
    quantafire
    Participant

    I 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/Tul8DasP87o

    #56112
    Jonah
    Participant

    Hi quantafire,

    Try something more like: http://snippi.com/s/157mkmb

    – Jonah

    #56222
    quantafire
    Participant

    Jonah,
    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!

    #56224
    quantafire
    Participant

    Oh 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!

    #56226
    quantafire
    Participant

    OK, 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/rywym5f

    #56254
    Jonah
    Participant

    Looks good quantafire, thanks for sharing your code snippet! Are you all set here then?

    – Jonah

    #979964
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Display All Events at a particular venue PHP problem’ is closed to new replies.