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


Register fields to option subpage

  • 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

  • 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.