I am having a few issues implementing this. I may be confused with the slug.
1. I have created a template in themes/my-theme/events-manager/templates/category-single.php
2. I have added the code you recommended below.
global $EM_Category;
EM_Events::output( array('category' => $EM_Category->slug) )
3. I added html to the template below:
<?php
global $EM_Category;
// For the Format HTML please use the following placeholders:
// https://wp-events-plugin.com/documentation/placeholders/
$fmt_header = '<div class="eventcontainer">';
$fmt_content = '<div class="eventlist">
<header class="entry-header">
<h1 class="entry-title">#_CATEGORYNAME</h1>
</header>
<div class="entry-content">
<table cellpadding="0" cellspacing="0" class="events-table" width="100%" align="center">
<thead>
<tr>
<th class="event-time" width="20%">Date</th>
<th class="event-description" width="40%">Tour</th>
<th class="event-price" width="20%">Price</th>
<th class="event-booking" width="20%">Book Now</th>
</tr>
</thead>
<tbody>
<tr>
<td class="event-time" width="20%">#_EVENTDATES</td>
<td class="event-description" width="40%">#_EVENTLINK</td>
<td class="event-price" width="20%">$#_ATT{Price}</td>
<td class="event-booking" width="20%"><a class="book" href="/trip-preparations/trip-forms/reservation-form/">Book Now </a></td>
</tr>
<tbody>
</table>
</div>
</div>';
$fmt_footer = '</div>';
$args = array('scope'=>'all', 'orderby'=>'date', 'category' => $EM_Category->slug, 'format_header'=>$fmt_header, 'format'=>$fmt_content, 'format_footer'=>$fmt_footer,);
$args = apply_filters('em_content_categories_args', $args);
/* @var $EM_Category EM_Category */
EM_Events::output( array('category' => $EM_Category->slug) )
?>
Nothing is coming thru on my single category page. I assume I’ve confused something about the “slug”, which fonconnzi said he had gone to settings and changed, but I’m not sure what this means.
And/or I am supposed to put this code in the
Events > Settings > Formats/Layouts > Events Format under “Single Category Page format” (where I currently have: #_EVENTDATES #_EVENTNAME #_EVENTTIMES #_EDITEVENTLINK).
Can you clarify a little more please? Thank you for this post. I have been looking for this solution for several months.