Archived
Fix upcoming event template
This commit is contained in:
1 parent
4e43b582f8
commit
221c5241d9
1 file changed
-1
@@ -45,7 +45,6 @@ if ($events->have_posts()) : while ($events->have_posts()) : $events->the_post()
|
|||||||
$post->event_types = array();
|
$post->event_types = array();
|
||||||
foreach ($event_array as $event_type) {
|
foreach ($event_array as $event_type) {
|
||||||
$post->event_types[] = $event_type->name;
|
$post->event_types[] = $event_type->name;
|
||||||
$post->post_classes[] = 'event-type-' . $event_type->slug;
|
|
||||||
}
|
}
|
||||||
$post->event_types_comma = implode(', ', $post->event_types);
|
$post->event_types_comma = implode(', ', $post->event_types);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user