• Resolved politicske

    (@politicske)


    Hi. This plugin is stripping my custom breadcrumbs and signup forms added via shortcode in single.php in autoloaded posts. How to stop this behaviour?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    Hi @politicske

    Auto Load Next Post does not remove content execpt for the comments container if enabled via the settings so not sure why breadcrumbs would be removed.

    Could you possibly provide more details such as the theme and shortcodes you are using?

    Maybe a link to the site you have the plugin enabled.

    Thank you.

    Thread Starter politicske

    (@politicske)

    The theme I am using is generatepress https://ww.wp.xz.cn/themes/generatepress/
    The shortcode is for MailChimp forms by optincat https://ww.wp.xz.cn/plugins/mailchimp-wp/
    The breadcrumbs are custom from here http://dimox.net/wordpress-breadcrumbs-without-a-plugin/

    The breadcrumb I set it to show above post title in the single posts but the plugin only shows autoloaded posts from the post title section hence stripping breadcrumbs. I had to move the breadcrumb inside post content for it to show. The MailChimp form shortcode is set to show above comments and I have not disabled comments in my posts for autoloaded posts. It is missing from the autoloaded posts. I also have a custom share plugin and I had to look for a custom code from the developer for the buttons to show in autoloaded posts https://ww.wp.xz.cn/support/topic/not-showing-in-autoloaded-posts/.

    Plugin Author Sébastien Dumont

    (@sebd86)

    @politicske To apply the same modifications you have made to your single posts, you will need to also apply to Auto Load Next Post repeater template.

    This will require using the action hooks available.

    Let me know if you have any further questions.

    Thank you.

    Thread Starter politicske

    (@politicske)

    I am not a developer so I don’t understand those action hooks. Maybe you can help me create a separate custom function for the breadcrumbs (before the title) and the subscription form (above the comments box). The shortcodes are as follows:
    1. Breadcrumbs – dimox_breadcrumbs();
    2. Subscription Form – [optin-cat id=6596]
    And I would like them to only appear on a single page, thus wrap them up with if ( ! is_singular( 'post' ) ) or other code used to call a single page. Thanks in advance.

    Plugin Author Sébastien Dumont

    (@sebd86)

    Auto Load Next Post only does single posts at this time so the condition will not work.

    As for the breadcrumbs, I personally would not recommended having the breadcrumbs display again but if that is what you want you could apply it like so.

    function reload_breadcrumbs() {
      dimox_breadcrumbs();
    }
    add_action( 'alnp_load_before_loop', 'reload_breadcrumbs' );
    Thread Starter politicske

    (@politicske)

    I decided to just not use your plugin altogether. Sorry about that. Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Stop plugin from stripping shortcodes’ is closed to new replies.