Forum Replies Created
-
AuthorPosts
-
Paul
ParticipantBarry, fantastic, thats got me up and running. I appreciate the input.
Paul
ParticipantHi Barry,
Thanks very much for the reply. I had seen that code in the tickets.php file but ive not been able to get it to work, im missing something.Would you mind taking a look at my code so far and give me some pointers how i could incorporate the sold out option im looking for?
https://dl.dropboxusercontent.com/u/3141/code/single.php
The site itself is here http://stage.liverpoolticketpackages.co.uk/event/price-v-thompson-echo-arena-liverpool/
Cheers
PaulPaul
ParticipantBarry, thats nailed it, thank you for your assistance with this.
Paul
ParticipantThanks Barry,
Unfortunately that doesnt seem to be working, the pdf is still attached to the completed order email.Paul
ParticipantHi Barry,
Thanks for looking into this for me.
Does WooTickets use any custom fields that i would need to tap into?Thanks
PaulPaul
ParticipantJonah,
That now works perfectly. Thank you.Paul
ParticipantHi Jonah,
That works perfectly thanks.Paul
Paul
ParticipantIs this something that isnt possible?
Paul
ParticipantSorry to drag this one up but i have a similar request.
I need to display a list of events based on the city, is there no way to query based on the existing city field?Paul
ParticipantHi Joey,
That last update did the trick, fantastic, thanks for your help with this.Cheers
PaulPaul
ParticipantHi Joey,
Thanks for your input on this, really appreciate your help. Unfortunately that code isn’t working for me.
Heres what i have http://db.tt/r0mVAOmf as before it is just outputting the next featured event.Having
die(var_dump($post));in there caused an error.Have i got something wrong?
Paul
ParticipantHi Jonah,
Ive gone down the WP_Query route as suggested, but still finding the same issue. I can get a random event from the featured category if i leave out ‘eventDisplay’=>’upcoming’ but that allows past events to display, which i dont want.Heres the query
$featured_query = new WP_Query( array(
'post_type' => 'tribe_events',
'posts_per_page' => '1',
'orderby' => 'rand',
'eventDisplay'=>'upcoming',
'tax_query'=> array(
array(
'taxonomy' => 'tribe_events_cat',
'field' => 'slug',
'terms' => 'featured',
'operator' => 'IN'
)
)
)
);while ( $featured_query->have_posts() ) : $featured_query->the_post();
This code outputs the next event from the featured category, but the orderby rand seems to be ignored or overridden by eventDisplay. Am i missing something obvious here?
Appreciate any help you can give.Paul
ParticipantIm unsure how to replace tribe_get_events with WP_Query correctly.
Paul
ParticipantHey Jonah,
Thanks for the reply. Im struggling to get this working. Can you give me some pointers.This is what i have, but isnt working
if( function_exists( 'tribe_get_events' ) ) {
$posts = tribe_get_events(array(
'eventDisplay'=>'upcoming',
'numResults'=>1,
'orderby'=>'rand',
'tax_query'=> array(
'taxonomy' => 'tribe_events_cat',
'field' => 'slug',
'terms'=> 'featured',
)));$template = TribeEventsTemplates::getTemplateHierarchy('widget-featured-display');
}Paul
ParticipantIve added a custom menu to a site using the category url to filter events in certain categories.
For example : http://www.url.co.uk/events/category/sport/
events is the slug you have set in the ECP settings.
-
AuthorPosts
