Forums

category-specific custom fields (4 posts)

  1. tbwtf
    Member
    Posted 1 year ago #

    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?

  2. erick_paper
    Member
    Posted 1 year ago #

  3. Dgold
    Member
    Posted 1 year ago #

    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!

  4. boff2000
    Member
    Posted 9 months ago #

    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 :P )

Topic Closed

This topic has been closed to new replies.

About this Topic