Create a different page templates for event list for different pages
-
Hi i have already formated my list of events & everything is up & running thanks to Marcus’ help.
So here is what i want to achieve now 1 page which has all the events listed in a list format (5 events in one page),[done using event templates].
& 2nd a category specific home page(3 events in one page) of that category, shown in a pinterest kind of boxes, which is where i am facing difficulty. I created a page template & pasted the new format<div id="primary" class="site-content"> <div id="content" role="main"> <?php $args = apply_filters('em_content_events_args', $args); if( get_option('dbem_css_evlist') ) echo '<div class="css-events-list">'; $args['limit'] = 1; $args['pagination'] = 1; $args['format'] = '<li> <div class="img-holder">#_EVENTIMAGE</div> <div class="course-excerpt"> <h1 itemprop="summary">#_EVENTLINK</h1> </div> <div class="date-box"> <time itemprop="startDate" datetime="#Y-#m-#d"></time> <span class="month">#M</span> <span class="date">#j</span> <span class="day">#D</span> </div> </li>'; echo '<ul class="event-list">'; echo EM_Events::output( $args ); echo '</ul>'; if( get_option('dbem_css_evlist') ) echo "</div>";?> </div><!-- #content --> </div><!-- #primary -->
& it displays the boxes properly but it is not category specific i.e the shortcode [events_list category=”28″ limit=”1″ pagination=”1″] on the page with that page template doesn’t work, i see all the events from all the categories.
I hope i made sense.
How can i make it category specific?
- The topic ‘Create a different page templates for event list for different pages’ is closed to new replies.