younggogetter
Member
Posted 5 years ago #
Hi there,
I'm using a javascript hover plugin to display titles that are defined for hrefs. I've modified everything to have them only appear for one block of designated content.
Unfortunately, I can't find where to remove "View all posts in..." title from the <?php the_category(',') ?> tag.
Which file would that be located in?
younggogetter
Member
Posted 5 years ago #
Managed to fix it myself.
rodageo
Member
Posted 5 years ago #
Can you post how you fixed this for everyone else?
rembrandt
Member
Posted 5 years ago #
Instead of using the_category, you use get_the_category as follows
<?php
foreach((get_the_category()) as $category) {
echo $category->cat_name . ' ';
}
?>
You can find more information at the url below to see other objects are available in the array.
http://codex.wordpress.org/Template_Tags/get_the_category