Is it possible when displaying a category to have one post, for example "a disclaimer" or description about the category to always appear at the top of the query, then then posts below it appear chronologically?
Is it possible when displaying a category to have one post, for example "a disclaimer" or description about the category to always appear at the top of the query, then then posts below it appear chronologically?
Absolutely. In WP Admin -> Manage -> Categories write a description for each category. To display it, use Template_Tags/category_description in your theme somewhere.
i am so stoked for this feature.
If you're curious to see an example, check out the orangish box at the top of this category on my site:
http://adambrown.info/b/widgets/category/kb-backtick-comments/
Is there anyway to have the category description disappear when going to the next page?
How do you make the category description go away after its displayed once?
You would need to send a custom cookie to the browser the first time somebody views a category, then check for that cookie on future visits.
Cookies can get tricky. If you've not worked with them before, start with some googling.
Hi! I'm kind of confused... where in the theme code should you put the
<p><?php echo category_description(3); ?></p>
THANKS!
In the Category_Templates.
This topic has been closed to new replies.