Plugin shortcode loads content twice (6 posts)

  1. abrucius
    Posted 4 years ago #


    I installed a plugin called Ajax Filter Posts.

    It uses a shortcode to display content. I inserted the shortocde in the post content, but data is displayed twice on my website - in the correct place (post content) and also in incorrect place (top of website - <head> section of the template).

    Can you let me know what might cause this strange behaviour? The plugin is heavily based on jQuery and Ajax and loads scripts using wp_enqueue_script in to the <head> section - but why does it load the content in there too?

    I would be grateful for your help.

  2. psychedelus
    Posted 3 years ago #

    I know that this is an old post but I am experiencing the same problem. If anyone has any kind of advice on how to resolve this issue it would be greatly appreciated if you'd post it in this thread.

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    You're running WordPress 3.2? If not, please post your own topic.

  4. psychedelus
    Posted 3 years ago #

    Hi Esmi,

    No I'm not, my WordPress installation is version 3.5. I didn't realise this was only for 3.2, my apologies.

    Either way I've managed to resolve the issue by not using 'echo' in the shortcode but using 'return' instead.

    Posted 3 years ago #

    Hi All,

    Am also facing this issue.

    In my case this happening by 'JetPack' plugin.

    Here the LINK, where i am using a Appointment Scheduling plugin on page with jectpack plugin installed.

    Jetpack loading Appointment Calendar Plugin 2 times on page and conflicting in appointment scheduling process.

    When i deactivate JetPack, Its works perfect, load page content once.

    If Any Suggestion or Help regarding this issue appreciated.

    -Frank Faraz

    Posted 3 years ago #

    Same Here Too


    Shortcode Loading Twice in page if 'JetPack Plugin Installed'.

Topic Closed

This topic has been closed to new replies.

About this Topic