• hi.. i’d like to find out how i can add lets say a certain header thats only for the music category to all my posts, using custom fields.. or if i want to ad a sponsor logo only to the end of all my event -category postings.. how can i do this?

    also, I’d like to make “category home pages” any advice on where i can find info for that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ve got 2 choices, 2 methods.

    You can put Conditional Tags in your theme’s category.php. Basically your code will say something like “IF this is Category 3, then do this stuff….. IF this is category 4, then do this other stuff…”
    http://codex.wordpress.org/Conditional_Tags

    OR you can make a custom Category Template for any special category. That is, like, a “category home page”,
    http://codex.wordpress.org/Category_Templates

    Enjoy!

    This will work for sites that have a few static categories that can have certain values associated – but what if users create the categories that require custom fields?

    In my case, every category is essentially a new blog for a different project, and I want a user to be able to select a NextGen gallery ID to be associated with that category and every post within. I could do it with conditional tags – but then I’d have to edit the php every time someone creates a new category. Any ideas?

    (I was going to start a new thread, but thought id post here instead 😛 )

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘category-specific custom fields’ is closed to new replies.