Results 1 to 3 of 3

Thread: Different custom fields for each category

  1. #1
    Thread Starter
    Junior Member
    Not a Verified Customer
    Il Gatto's Avatar
    Join Date
    Dec 2009
    Posts
    47
    Thanks
    0
    Thanked 2 Times in 1 Post

    Different custom fields for each category

    How would you assign different custom fields for different categories?

    Perhaps tweaking the post-form.php and creating separate forms for each category?

    Or making certain parts of the form to appear / disappear according to user selection of category?

    for example -> users selects category "A"... then there's a php condition that if A is the selection, make appear the field "x" from the form, else do not show... if category "B" is selected, show "y", else do not show...

    how would you do that? I'm really interested in this... any opinions?

    thank you a lot

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,973
    Thanks
    169
    Thanked 3,406 Times in 3,277 Posts

    Re: Different custom fields for each category

    How about using the "if" argument in php. The wordpress codex might help http://codex.wordpress.org/Main_Page" onclick="window.open(this.href);return false; .
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Junior Member
    Not a Verified Customer
    Il Gatto's Avatar
    Join Date
    Dec 2009
    Posts
    47
    Thanks
    0
    Thanked 2 Times in 1 Post

    Re: Different custom fields for each category

    yeah I thought of that... I'm not a great php coder and I'm looking for the right syntax...

    like... if the selected category in a dropdown is "x" then change the style of a div in a form to "visible" if it's "y" keep that div hidden and show another instead...

    anybody?

Thread Information

Users Browsing this Thread

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