Forums

Change Edit Page Custom Input Fields per Template (3 posts)

  1. WPRies
    Member
    Posted 2 years ago #

    I'm looking for a way to show different input boxes on the Admin Page Edit screen based on which page template is selected.

    I've reviewed several approaches to adding custom input boxes:

    Based on the above, I can add meta/input boxes to the Page Edit screen, but they display for every page no matter which template is selected (as expected!).

    I would like different input boxes to display on the Page Edit screen based on which template is selected.

    For example, I have 2 page templates:

    • Default Page Template: requires a "subtitle" in addition to standard fields
    • Section Overview Page Template: requires a "subsection title" and "subsection subtitle"

    When a user selects Section Overview Page Template on the Page Edit screen, I would like the edit area to display different meta boxes.

    Any advice on how to approach this?

  2. WPRies
    Member
    Posted 2 years ago #

    Can you help a forum newbie?

    Above is my first post and I didn't get a response... did I put it in the wrong forum or is there a better way to write it?

    Thanks for any advice!

  3. sokratesagogo
    Member
    Posted 2 years ago #

    I would also like to know how to do this!

Topic Closed

This topic has been closed to new replies.

About this Topic