Support

Account

Home Forums Add-ons Options Page Options page for custom post types

Solving

Options page for custom post types

  • How can I have different options pages for my custom post type sections in the admin?

  • Well I somewhat figured it out by using

    acf_add_options_sub_page(array(
    ‘title’ => ‘Room Options’,
    ‘parent’ => ‘edit.php?post_type=custom-post-type-name’
    ));

    But this overrides the link to my main options page.

  • What happens if you try “parent_slug” instead of “parent”?

  • Try my plugin
    https://github.com/Tusko/ACF-CPT-Options-Pages

  • @tuskotrush thanks for the very nice plugin!
    Working great as I expected.

    I have one question. I posted my question here.
    It’s about fields order and strange redirection.

    http://support.advancedcustomfields.com/forums/topic/option-pages-field-order-is-different-from-setting/

    Will you help me out whenever you have time.
    thank you.

  • hi, in my case the following worked for me, I put it with the Code Snippet plugin …

    
    if( function_exists('acf_add_options_page') ) {
    
            acf_add_options_sub_page(array(
    		'page_title' 	=> 'Donde comprar',
    		'menu_title'	=> 'Donde comprar',
    		'parent'	=> 'edit.php?post_type=diaril_sa',
    		
    	));
    }
    
    
Viewing 6 posts - 1 through 6 (of 6 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.