Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
Roberta
ParticipantSO simple! Awesome, thank you!
Roberta
ParticipantAh, so close! This is actually a custom loop I’m running for a page dedicated to the Live Music category. Is it possible to display the form within a custom query such as this:
<?php if(is_page(7)) { // if a Live Music page // events loop $args = array( "post_type" => 'tribe_events', "eventDisplay" => 'upcoming', 'tax_query' => array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'slug', 'terms' => 'live-music' ) ), "posts_per_page" => '-1', "start_date" => date('Y-m-d H:i:s', strtotime("now")), 'orderby' => 'event_date', 'order' => 'ASC' ); $events = new WP_query($args); while($events->have_posts()): $events->the_post(); ?> <div class="event-listing"> <h2 class="event-des"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="event-content"> <?php the_content(); ?> </div> <p><a href="<?php the_permalink();?>" class="button">View Event Details and Purchase Tickets</a></p> </div> <?php endwhile; ?> <?php wp_reset_query(); ?> <?php } //endif is_page for Live Music ?>Roberta
ParticipantOh, I am using WooCommerce to sell the tickets.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
