Results 1 to 3 of 3

Thread: Unique Fields for Each Category -- Creative Solution Needed!

  1. #1
    Thread Starter
    Member collegism's Avatar
    Join Date
    Apr 2009
    Location
    Minneapolis, MN
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unique Fields for Each Category -- Creative Solution Needed!

    Objective:
    I'm customizing ClassiPress for an off-campus housing website. The client also wants a roommates section. And they want it all in the same instance of ClassiPress, meaning they don't want two separate installs.

    Problem:
    The custom fields are different for housing and roommates. If we simply add Roommates as an additional category then it will show the results in index.php, and single.php like it would for housing.

    Possible Solutions:
    I'm thinking of a way to create a secondary index.php, and single.php that caters to the roommate fields. But how to specifically get to those results is a difficult situation. Anyone with any ideas, even if it's out of the ball park is welcome to contribute. I've been stuck on this for about a week now.

    Screen Shots


  2. #2
    Veteran taylerj's Avatar
    Join Date
    Apr 2009
    Location
    Las Vegas, NV
    Posts
    380
    Thanks
    1
    Thanked 8 Times in 6 Posts

    Re: Unique Fields for Each Category -- Creative Solution Needed!

    This actually wouldn't be that hard. For single.php you would just use a category template. The will choose the single.php page depending on what category the user is in. For index.php you could use a php if function.
    Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)

  3. #3
    Rookie
    Not a Verified Customer
    WCFScouk's Avatar
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unique Fields for Each Category -- Creative Solution Needed!

    You could use jQuery for this, based on their first category selection the remainder of the page loads up the custom fields required for said category.

    Would be in a ajax style form, and this could easily be setup site wide for various fields per category.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)