Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p> Tickets for this event: </p>
- <ul>
- <?php
- $edd_tickets = TribeEDDTickets::get_instance();
- $tickets = (array) $edd_tickets->get_tickets_ids( get_the_ID() );
- $count = 0;
- foreach ( $tickets as $ticket_id ) {
- $count++;
- $ticket = $edd_tickets->get_ticket( get_the_ID(), $ticket_id );
- echo "<li> $ticket->name = $ticket->price bucks </li>";
- }
- if ( 0 === $count ) echo '<li> No tickets </li>';
- ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement