Support

Account

Home Forums Backend Issues (wp-admin) Options pages across native WordPress admin tabs?

Solving

Options pages across native WordPress admin tabs?

  • Howdy

    I’ve found myself in a situation where I would benefit from using the WordPress native admin tabs, but I’m not really sure where to start when ACF is concerned.

    The goal is to take data that a user has entered into a repeater field, and use it to populate a select field further down the page.

    I currently have all my fields on the one options page, and everything works fine for the most part. Data entered into the repeater is saving just fine, but then the page also needs an additional refresh in order to populate the select fields that are using that data.

    I can’t use the ACF tabs field, as the data in one tab is dependent on another, and requires a save and reload before switching tabs. I’d also prefer to avoid using multiple menu items to avoid user confusion. So, I figure the WordPress native admin tabs are the way to go.

    Is this actually possible with the way ACF creates and assigns pages as submenu items? I really just need a nudge in the right direction at the moment, as I can handle working with the tabs. I’m just not sure where to even start…

    Cheers
    Phil

  • Hi @mishtershmart

    I’m not sure what you mean by “Native WP tabs”. Can you please elaborate more on this?

  • Sure can.

    I’m referring to the tabs you see in Appearance > Themes. I’ve attached a screenshot for your reference.

    I’m hoping to add the same tabs, maybe in the Widgets page, so that I can include my custom settings.

    I’m creating a system whereby the site owner can create as many sidebars as they like and then assign them to areas of their site. So far, everything is gold, I’m just trying to organise the admin a little better.

    Thanks @elliot

  • Hi @mishtershmart

    This is not possible with the ACF plugin. You can’t ‘tab’ a WP admin page and add Custom fields next to it.

    This would be an extremely powerful feature, but I would not know where to start to add it in.

    Thanks
    E

  • Thanks @elliot

    I think the best approach would be to enable ACF custom fields to be hooked. If that were possible, the WP admin page could then be constructed manually, using WP functions, but the developer could add in their own hooks, thereby allowing them to hook ACF fields into their own admin page.

    I created a feature request post earlier this morning for you, so if you ever get around to that, I certainly look forward to it.

    Cheers
    Phil

  • Pretty shure this topic was forgotten but does this got implemented? This will help to better organize options for a theme.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Options pages across native WordPress admin tabs?’ is closed to new replies.