Support

Account

Home Forums ACF PRO acf_add_options_page not working with shortcodes

Helping

acf_add_options_page not working with shortcodes

    • ZC Web

    • October 17, 2019 at 2:35 pm

    I have an issue with shortcodes working in a wysiwyg editor that is assigned to what I called a ‘Mega Menu’. I did the following

    acf_add_options_page(array(
    	'page_title' 	=> 'Mega Menu',
    	'menu_title'	=> 'Mega Menu',
    	'menu_slug' 	=> 'menu-general-settings',
    	'capability'	=> 'edit_posts',
    	'redirect'		=> false
    ));
    
    acf_add_options_sub_page(array(
    	'page_title' 	=> 'Mega Menu 1',
    	'menu_title'	=> 'Mega Menu 1',
    	'parent_slug'	=> 'menu-general-settings',
    ));
    
    acf_add_options_sub_page(array(
    	'page_title' 	=> 'Mega Menu 2',
    	'menu_title'	=> 'Mega Menu 2',
    	'parent_slug'	=> 'menu-general-settings',
    ));

    And then I added a repeater so you could a add a link. Link Text. A class. And then in another tab I had a repeater where you could add columns. So if you added 5 columns it would be a mega menu dropdown that is 20% of the dropdown. Each column had it’s own wysiwyg editor. Everything is working fine just can’t get shortcodes to work.

    And shortcodes work in everywhere else including other ACF nested in repeater fields and flexible content. Just not with ‘add_options’page’ menus.

    Is this a known issue? Hope someone can help. Thank you.

  • There is not enough information. What shortcode are you using? All of your fields are stored as ‘options’, do the fields on each of these options pages have unique names?

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.