Support » Plugin: Events Manager » Categories display

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can modify template file at events-manager/templates/placeholders/categories.php

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/plugins/events-manager/placeholders/categories.php

    Hi!

    Thank you so much. I’m getting closer 😉
    So I removed some of the code and now I have it in a row.
    How can I add a comma in between genres, but not on the last one?
    For example: Reggae, Rock, Pop
    But not: Reggae, Rock, Pop,

    Hope it makes sense 😉

    Here’s the code I have now, after I removed some of the stuff from the original code:

    <?php
    /* @var $EM_Event EM_Event */
    $count_cats = count($EM_Event->get_categories()->categories) > 0;
    if( $count_cats > 0 ){
    	?>
    	
    		<?php foreach($EM_Event->get_categories() as $EM_Category): ?>
    			<?php echo $EM_Category->output("#_CATEGORYLINK"); ?>
    		<?php endforeach; ?>
    	
    	<?php	
    }else{
    	echo get_option ( 'dbem_no_categories_message' );
    }

    Never mind… I just added &nbsp; twice after the #_CATEGORYLINK section and it works better, I guess 😉

    Thank you so much again for your help! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.