Home › Forums › General Issues › Display Nextgen Gallery › Reply To: Display Nextgen Gallery
I did some looking at this and the reason it does not work is as James said in the other topic.
I don’t use NGG, so I can’t promise this will work, or that it is bug free, this is really just a guess
// add to functions.php
add_action('init', 'add_NGG_actions_to_acf');
function add_NGG_actions_to_acf() {
if (class_exists('C_NextGen_Shortcode_Manager')) {
$instance = C_NextGen_Shortcode_Manager::get_instance();
add_filter('acf_the_content', array(&$instance, 'fix_nested_shortcodes'), -1);
add_filter('acf_the_content', array(&$instance, 'parse_content'), PHP_INT_MAX);
}
}
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.