Support

Account

Home Forums Add-ons Options Page Moving options to another options page

Solved

Moving options to another options page

  • First, a little about what I’m doing (for context):
    I’m working on a plugin where I have a top-level menu item with half a dozen submenu items. One of the submenu items is called Settings. The settings page uses tabs and I want to add a new tab called Rate Card, which will need to be a repeater field so people can enter a list of names and values.

    In the plugin I’m already using ACF and I have now added Options Page and Repeater. So far, so good.

    Here’s what I want to do:
    1. Create an options group with the rate card repeater field (done)
    2. Hide the ‘Options’ menu item (done)
    3. Display the Rate Card Options group on my own tab. The URL for that tab looks like:
    edit.php?post_type=hours&page=wptt-settings&tab=ratecard

    It’s item #3 that I can’t wrap my head around how to accomplish. Any suggestions would be greatly appreciated!

    Cheers.

  • Hi @vegasgeek

    It is possible to add an option ssub page with a custom slug. This will allow you to set the slug to edit.php?post_type=hours&page=wptt-settings&tab=ratecard.

    Please read the docs for:
    http://www.advancedcustomfields.com/resources/functions/acf_add_options_sub_page/

    Thanks
    E

  • Oi! I feel like I somehow managed to dance around finding that solution on my own.

    Thank you, sir!

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

The topic ‘Moving options to another options page’ is closed to new replies.