Custom Fields
Re-Envisioned
Support Meta Box Include Exclude Include/Exclude with Setting Page.

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 2 years, 5 months ago.

  • Creator
    Topic
  • #5316
    Resolved
    jroxbury
    Participant

    I’m trying to Include/Exclude a field on the settings page(MB Settings Page), using a custom callback. Is this possible?

    I’ve tried a bunch of things, not sure exactly how this works.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #5319

    Anh Tran
    Keymaster

    The Include/Exclude extension works on the meta boxes, not on fields. You can hide/show meta boxes in a settings page using callback function without any problem. However, if you want to show/hide a field, you might need to do a trick: separate the original meta box into 2 meta boxes: 1 for all other fields that always show, 1 for the specific field that can be shown/hide in the settings page. Then use the Include/Exclude extension on the 2nd meta box.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.