WordPress.org

Ready to get started?Download WordPress

Forums

Plugin shortcode loads content twice (6 posts)

  1. abrucius
    Member
    Posted 2 years ago #

    Hi,

    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
    Member
    Posted 1 year 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 1 year ago #

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

  4. psychedelus
    Member
    Posted 1 year 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.

  5. FARAZFRANK
    Member
    Posted 1 year 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.

    Thanks
    -Frank Faraz

  6. FARAZFRANK
    Member
    Posted 1 year ago #

    Same Here Too

    http://appointzilla.com/wordpress-google/?page_id=8

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

Topic Closed

This topic has been closed to new replies.

About this Topic