Categories display
-
Hi,
I’m using the plugin’s Categories as genres as you can see here:
http://www.events.wavebix.com/events/Now, to save space I would like to change the display from List to something like this: Reggae, Rock, Pop
The same way the TagCloud is (side bar)I want that both on that page and the individual event’s page:
http://www.events.wavebix.com/events/3ple-tsunamiz-no-hollywood-spot/How can I do it? I don’t mind changing the plugin’s original files, if needed.
Thank you so much! 🙂
- This topic was modified 4 years, 9 months ago by Tiago.
The page I need help with: [log in to see the link]
-
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
twice after the #_CATEGORYLINK section and it works better, I guess 😉Thank you so much again for your help! 🙂
- This reply was modified 4 years, 9 months ago by Tiago.
- The topic ‘Categories display’ is closed to new replies.