• I have a WordPress 1.5.2 blog with several different categories, such as Art, Music, Film, etc. I would like to set things up so that when a user clicks on a category in the sidebar, and WordPress thus fetches all the posts filed under that category, a brief introductory text for that category appears above the list of fetched posts.

    In other words, let’s say a user clicks on “Film” in the sidebar. I’d like WordPress to display a short “static”
    paragraph at the top of list of fetched posts, stating something like, “Here’s where I post my inane ramblings about the movies I’ve loved or hated, etc.” Under that paragraph, of course, is where I’d like the posts to be listed.

    It would be great if this description/introduction could be culled directly from the “Category Description” field in the MySQL table containing all my categories. Is this possible?

    Sorry if this sounds like a dumb question. I’ve looked through management-console and searched the support forum, and couldn’t find anything that directly addresses this concern. If you can help, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ryandannar

    (@ryandannar)

    Thanks for the tip! That bit of code is certainly certainly helpful, and it does address my issue. However, it raises another question, due to the fact that it seems this code is meant to be placed into a template file:

    It seems to me that, in order to use this code to return the appropriate “category description” for whatever category a user clicks on, I’d have to tell WordPress to use a different template for each category. I know that WordPress allows me to define a different template for each “Page,” but I’d like to avoid turning my “Categories” into “Pages,” as I think that would open up a whole new can of worms.

    So, is it possible to have WordPress use a different template for each category? It would be awesome if I could do that. Thanks again!

    Thread Starter ryandannar

    (@ryandannar)

    Aha! I have answered my own question. If anyone else wants to know how to do this, please check out:

    http://codex.wordpress.org/Category_Templates

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I make a Category Description appear at the top of a page of fetched posts?’ is closed to new replies.