marcoc84
Forum Replies Created
-
great!! thanks for your support it is now working
In acf-font-awesome.php, I have updated the code blocks where ‘ACFFA_PUBLIC_PATH’ and ‘ACFFA_DIRECTORY’ are defined and the functions file, but I do not display the plugin entry in acf.
In acf-font-awesome.php, I have updated the code blocks where ‘ACFFA_PUBLIC_PATH’ and ‘ACFFA_DIRECTORY’ are defined and the functions file, but I do not display the plugin entry in acf.
define( 'MY_ACFFA_PATH', get_stylesheet_directory() . '/third-part/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php' ); define( 'MY_ACFFA_URL', get_stylesheet_directory_uri() . '/third-part/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php' );
Is it sufficient to define only those in functions.php?
I will try this solution
- This reply was modified 2 years ago by marcoc84.
it is curious that if I do not integrate it into the theme, it works.
i’m doing some tests with other themes found on the net. i’ll update herethank you for your reply. i’m doing some tests, but i can tell you that i’m only using 3 plugins in my theme all integrated in the theme,I have no plugins installed in the plugin administration area: 1 ACF PRO , 2 ACF extended pro and yours, this is my code:
// Define path and URL to the ACF plugin. define( 'MY_ACF_PATH', get_stylesheet_directory() . '/third-part/plugins/acf/' ); define( 'MY_ACF_URL', get_stylesheet_directory_uri() . '/third-part/plugins/acf/' ); // Include the ACF plugin. include_once( MY_ACF_PATH . 'acf.php' ); // Customize the url setting to fix incorrect asset URLs. add_filter('acf/settings/url', 'my_acf_settings_url'); function my_acf_settings_url( $url ) { return MY_ACF_URL; } // (Optional) Hide the ACF admin menu item. //add_filter('acf/settings/show_admin', '__return_false'); // When including the PRO plugin, hide the ACF Updates menu add_filter('acf/settings/show_updates', '__return_false', 100); // define path and URL to the ACFE plugin define('MY_ACFE_PATH', get_stylesheet_directory() . '/third-part/plugins/acfe/'); define('MY_ACFE_URL', get_stylesheet_directory_uri() . '/third-part/plugins/acfe/'); // include the ACFE plugin include_once(MY_ACFE_PATH . 'acf-extended.php'); // customize the url setting to fix asset URLs add_filter('acfe/settings/url', 'my_acfe_settings_url'); function my_acfe_settings_url($url){ return MY_ACFE_URL; } include_once( get_stylesheet_directory() . '/third-part/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php' );
could there be a conflict with acf extended or something else?
Hi Patrik, I have already reported the problem with a ticket, can you answer me?