[Plugin: Events Manager] Display the category attached to event
-
Hi,
I am trying to display the category name (event or location) in my result page when I make one request. You can check this address : https://francejazz.fr/?s=guy+bonne
In the result section, you can see under the green title a clear gray area where it is displayed for example “dans Articles : France Jazz”.
If you scroll down the 5th and 6th posts (GUY BONNE QUINTET) don’t display anything in the same area. These post are in fact events.
So is there an hack to display the category name according to the condition that it is an event ?
I tried this :
<?php if ( $post->ID == $events_page_id ) : ?>
<?php echo EM_Events::category ; ?>
<?php endif; ?>
But of course it doesn’t work.
Thanks for your help.
- The topic ‘[Plugin: Events Manager] Display the category attached to event’ is closed to new replies.