Support

Account

Home Forums Add-ons Options Page Register fields to option subpage

Helping

Register fields to option subpage

    • Levi

    • March 29, 2021 at 11:57 pm

    Can i register custom fields to an subpage of an option page?

    I got my option page with de following function:
    init -> function_exists(‘register_field_group’)

    Is there a way i can init other field to my options_sub_page?

    Here is my code

    https://codeshare.io/G6Nmbo

  • You have to provide the slug for the options page in the location rules. Since you are not specifying this slug when creating the sub options page I can’t tell you what it is. You’ll need to figure that out but looking at the page that’s being created. According to the ACF documentation the slug should be “social”.

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.