• Resolved narelly

    (@narelly)


    I’m sure this problem is well known to most of us…

    “One of the filter that deactivates all the shortcodes in the nextgen gallery breaks nextgen shortcodes whenever there is the_content hook involved within any other shortcode that is on the same page as NGG shortcodes. This will happen to any theme that has this kind of shortcode which involves fetching post content from any post type.”

    There was a workaround that does not work anymore…

    “To fix this, nextgen gallery plugin core files will have to edited and maintained to remove this filter until NGG adds it to the core. Edit wp-content/plugins/nextgen-gallery/non_pope/class.nextgen_shortcode_manager.php, find and delete the following code:

    add_filter('the_content', array(&$this, 'deactivate_all'), 1);

    I use RPS Include Content and Post Content Shortcodes plugins, and both shortkodes kill NextGen Gallery shortkode and the above sollution does not work anymore. Can anyone tell me what the sollution is now?

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @narelly – Have you tried adding the following to your wp-config.php file:

    /** Content shortcode conflicts? */
    define( 'NGG_DISABLE_FILTER_THE_CONTENT', true );

    This was specifically added to address concerns due to the WordPress bug noted in trac ticket #17817 … which hopefully will be addressed soon and this general WordPress issue will be resolved for NextGEN Gallery as well as other plugins that experience this problem.

    Thanks!

    – Cais.

    Thread Starter narelly

    (@narelly)

    Dear Cais,

    This sollution did not help for me. Any other idea?

    Plugin Contributor photocrati

    (@photocrati)

    @narelly – Perhaps the authors of the other plugins can share some insight into why they are breaking NextGEN Gallery … have you asked them about this?

    – Cais.

    Thread Starter narelly

    (@narelly)

    I can ask them, but all shortcodes kill NextGen Gallery that use the_content filter. I tried two plugins….

    Plugin Contributor photocrati

    (@photocrati)

    @narelly – If the above define statement is not working … have you tried using the IGW to insert your displays instead?

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NextGen gallery shortcodes not working’ is closed to new replies.