pezastic
Member
Posted 5 years ago #
I asked this two years ago, but didn't get a viable answer. So, I was wondering if anything had changed. I now have over 100 categories and entered descriptions for all of them. I would like a way to display those descriptions to users when they mouseover the category titles on the sidebar. Is this possible? If so, how?
Template_Tags/wp_list_categories
Take a look at the use_desc_for_title Parameter
pezastic
Member
Posted 5 years ago #
How did I miss that? Thanks a bunch!
Zuperfly
Member
Posted 4 years ago #
Is it also possible to access and display the category description somewhere 'outside' the wp_list_categories parameter?
Zuperfly
Member
Posted 4 years ago #
Okay, it's possible with <?php echo category_description(); ?>
But is it also possible to get an automatic category listing like this:
- Category title
Category description
Do I have to use a "for each loop" ? Sorry, I'm not so firm with PHP..
drew3000
Member
Posted 4 years ago #
I haven't been able to make <?php echo category_description(); ?> no matter where I put it. I haven't been able to get it to work yet. Only if I put a number in the parenthesis, like <?php echo category_description(3); ?> or something. But then it's a fixed, sticky post that will always display that category description, no matter what.
How can I simply display the correct, corresponding category description?
Seems like there should be a strip of code to do this, but i'm missing it.
drew3000
Member
Posted 4 years ago #
drew3000
Member
Posted 4 years ago #