echo category_description not working in index.php?
-
Hello together,
i had found out some weeks ago that i can give every category its own discription.
Just Edit the normal Category, fill out the Description field, post the code
<?php echo category_description(); ?>
at the place you like to have the description and be happy.So i thought it would be easily done. I wrote for every Category a unique explaining description for my visitors and i wanted to put the description at the top of all posts for each category.
So it looked now like this in the index.php:
<div id="content"> <div style="padding: 0 10px 5px 10px;"><?php echo category_description(); ?></div> <div class="main_title">
Somehow i hoped that the default category would be the home-site, but it woulnd’t be such a downer if i am wrong in it. But that it shows NOTHING at all makes it kind of bad.
I do find these Description Texts now as a hovereffect when i place the mous on the Category in my sidebar.
Is there now any way to get the Description shown atop of my Postings and, as a nice sidecandy ;), that i can disable the discription hover in the sidebar?
The Sidebar is really not important, but i would be glad if i get the Discription shown when someone choose only this category.
Kind Regards
- The topic ‘echo category_description not working in index.php?’ is closed to new replies.