Include the plugins path
-
hi there,
Yep can agree this plugin crashes the theme.
Pasting this in your themes functions.php doesn;t cut the mustard.
function my_register_fields() { include_once('advanced-custom-fields-nav-menu-field/nav-menu-v4.php'); } add_action('acf/register_fields', 'my_register_fields');
Instead you NEED TO INCLUDE the directory of you plugins…
This will resolve it.function my_register_fields() { include_once(WP_PLUGIN_DIR . '/advanced-custom-fields-nav-menu-field/nav-menu-v4.php'); } add_action('acf/register_fields', 'my_register_fields');
https://www.ads-software.com/plugins/advanced-custom-fields-nav-menu-field/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Include the plugins path’ is closed to new replies.