Quantcast
Channel: WordPress.org Forums
Viewing all articles
Browse latest Browse all 46187

danceutah on "[Plugin: The Events Calendar] List All Categories, Get Next Event Thumbnail"

$
0
0

I should have forked a new topic, but here goes.

Original Function

function tribe_calendar_grid()  {
  set_query_var( 'eventDisplay', 'bydate' );
  load_template( TribeEventsTemplates::getTemplateHierarchy('table') );
}

Modified to target a year/month

function tribe_calendar_grid($Yr-Month)  {
  set_query_var( 'eventDate', $Yr-Month );
  load_template( TribeEventsTemplates::getTemplateHierarchy('table') );
}

Calling with '2012-06' produces the calender without any controls populated with events for that month.

Basically all I want to do is embed a calendar or target a calendar page that displays a category. More than one filter would be ideal, so I could produce a calendar specific to a region and an event category.


Viewing all articles
Browse latest Browse all 46187

Latest Images

Trending Articles



Latest Images