Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Automattic

    (@automattic)

    If you mean displaying just the price while in the Loop, you’re half-way there. $post->tickets is an array of ticket type objects. If the event has multiple ticket types, they’ll all be represented there. Ticket types that are “paid” will have currency info that will allow you to extract the price.

    Thread Starter hellsdells

    (@hellsdells)

    Thanks for the replay on this so what hook would I use to pull in the array? <?php echo $post->tickets; ?>?

    Plugin Author Automattic

    (@automattic)

    I’m not sure I understand the question; is there a hook you want to use it with?

    If you want to display the price of a ticket while in a Loop, each of the events will have their ticket types in that array $post->tickets. That array will vary, though, based on the kind of tickets you’re offering (paid, free, etc), so you’ll need to see what’s in your array to find the price data (the links in the comment above will help you find what’s possible).

    Plugin Author Automattic

    (@automattic)

    Hi hellsdells, anything else you need here?

    Plugin Author Automattic

    (@automattic)

    Closing; just open a new thread if you have more questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Ticket price’ is closed to new replies.