Support

Account

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);
      }
    }