coxis
Veteran
Just Getting Started
Member Likes (0)
Hi There
I am looking to display the current category title in the category descriptions. I know this is done through some shortcodes and editing the functions.php, but tried and could not work it out.
If anyone can lend a hand it would be great, ps I give thanks
Cheers

Responses (2)
Inactive (joined February 2012) Likes (0)
Hello coxis,
This isn't regarding any of our plugins right? We have category related plugins, so I just want to make sure that this isn't about any of them.
If you are talking about WordPress categories, you should be able to do it in your category archive template. Different themes use different files for category archives.
See if your theme has category.php or archive.php. The theme will have index.php anyway.
If there is category.php / archive.php open up that file and you will see how the category is laid out. (Go for archive.php only if category.php isn't available).
You should be using
single_cat_title()to display the category name.
http://codex.wordpress.org/Function_Reference/single_cat_title
Also this will help you get the preference order of templates: http://codex.wordpress.org/images/1/18/Template_Hierarchy.png
Good luck!
Support Chimp (joined March 2010) Likes (0)
Hey there, hope you are well!
Just checking in to see how things are going and if you need further assistance.
If you do then please feel free to reopen this thread or create a new one.
Take care and have a fantastic day!
Become a member