Forum Replies Created
-
AuthorPosts
-
May 8, 2013 at 3:53 pm in reply to: Help needed for displaying past events(archive) of a specific category #47959
Prateek
ParticipantHi Jonah,
The New code works fine form me except for new issue, the ‘orderby’=>’DESC’, is not working. It will be great if you can tell me where i am wrongHere is my code:
global $post;
$current_date = date(‘j M Y’);
$end_date = date(‘j M Y’, strtotime(‘-730 days’));$get_posts = tribe_get_events(
array(
‘start_date’=>$current_date,
‘end_date’=>$end_date,
‘posts_per_page’=>-1,
‘orderby’=>’DESC’,
‘tax_query’=> array(
array(
‘taxonomy’ => ‘tribe_events_cat’,
‘field’ => ‘slug’,
‘terms’ => ‘150-anniversary’
)
)
) );foreach($get_posts as $post) { setup_postdata($post); ?>
March 22, 2013 at 10:02 am in reply to: Style First Event differently with Event list Advance Widget #43795Prateek
ParticipantThanks for you quick response Barry. The :first-child in CSS will be a good idea but here it won’t work as I will not have control over the Featured Event.
Thanks Again for your help I will create another thread for excluding a category.
March 21, 2013 at 8:50 pm in reply to: Style First Event differently with Event list Advance Widget #43746Prateek
ParticipantHi Barry,
I am using 2 widgets,
1) Next Event Widget to show the Featured upcoming Event
2) Event List advance widget to show the normal upcoming events.
Is there any simplest way to do so? I have created 2 categories Featured and Normal and I am trying to exclude the Featured events to get repeat in normal category. In this way I am facing problem I can’t pre select anything as whatever I select as Featured get omitted from the Normal. -
AuthorPosts
