Home › Forums › Calendar Products › Events Calendar PRO › Show Category Description
- This topic has 3 replies, 2 voices, and was last updated 9 years, 9 months ago by Casey.
-
AuthorPosts
-
June 30, 2014 at 4:30 pm #262865instressParticipant
I searched the forum and saw a topic similar to this, but it had no explanation on how to do it. If possible, I just want to echo the category description on the list view for that category. Bonus if someone can show me how to do it just for certain categories.
Thanks!July 1, 2014 at 11:52 am #265067CaseyParticipantinstress,
Thanks for getting in touch! You should be able to do something like this using ‘term_description().’ Here’s an example of how this function would work with the Event Categories:
<?php echo term_description( $term_id, 'events_cat' ); ?>
Where $term_id is the ID of the Category that you’d like to display the description for. You’ll also want to take a look at our themer’s guide to understand how to override template files and customize them for your needs.
Hopefully this should get you started in the right direction. Good luck!
Thanks! 🙂
-Casey-
July 1, 2014 at 1:00 pm #265215instressParticipantThank you for responding.
I figured out a different call to make, with the same results. I added
<?php echo category_description() ?> into the /list/content.php in my child theme so that it’d just print the category for the page that was displaying. I’ll keep your idea in mind too, if I ever want to change the behavior.
Thanks again!July 7, 2014 at 7:25 am #299734CaseyParticipantThanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/lo
Thanks in advance. 🙂
Cheers,
Casey -
AuthorPosts
- The topic ‘Show Category Description’ is closed to new replies.