https://github.com/elliotcondon/acf-wordpress-wysiwyg-field/issues/9
Hi guys.
Thanks for your patience. I’ll get this field compatible with ACF5 hopefully today
-elliotcondon
Just to provide a little more detail.
if(function_exists('acf_add_options_page')) {
acf_add_options_page(array(
'page_title' => 'My Settings Page',
'menu_title' => 'My Settings',
'menu_slug' => 'my_settings',
'capability' => 'edit_posts',
'redirect' => false,
));
acf_add_options_sub_page(array(
'title' => 'Header',
'slug' => 'header',
'parent' => 'my_settings',
));
}
Also to note, if you have 2 acf_add_options_page() with acf_add_options_sub_page() of the same ‘title’ you will need to use a different slug.
acf_add_options_sub_page(array(
'title' => 'Header',
'slug' => 'header',
'parent' => 'my_settings',
));
acf_add_options_sub_page(array(
'title' => 'Header',
'slug' => 'other_header',
'parent' => 'my_other_settings',
));
So playing around with ‘advanced-custom-fields-pro/acf.php’ I noticed dir is plugin_dir_url which makes ‘wp-content/plugins/’
Looking in ACF4 ‘advanced-custom-fields-pro/acf.php’ I see the function helpers_get_dir( $file ) which locates the proper directory and fixes win issues.
Adding function helpers_get_dir() to ‘advanced-custom-fields-pro/acf.php’ and replacing:
‘dir’ => plugin_dir_url( __FILE__ ),
with
‘dir’ => helpers_get_dir(__FILE__ ),
Appears to fix the situation.
Obviously, this isn’t a proper fix. Just a direction to the issue.
-WilliamH
I am also having similar issues with ‘Wonky’ Admin.
Wamp / Multisite / ACF5 Pro as an include.
Within admin the paths to CSS/JS are:
vs expected
-WilliamH
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.