Title: Plugin shortcode loads content twice
Last modified: August 20, 2016

---

# Plugin shortcode loads content twice

 *  [abrucius](https://wordpress.org/support/users/abrucius/)
 * (@abrucius)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/)
 * Hi,
 * I installed a plugin called [Ajax Filter Posts](http://wordpress.org/extend/plugins/ajax-post-filter/).
 * 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.

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

 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666293)
 * 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.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666294)
 * You’re running WordPress 3.2? If not, please post your own topic.
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666295)
 * 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.
 *  [FARAZFRANK](https://wordpress.org/support/users/farazfrank/)
 * (@farazfrank)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666304)
 * Hi All,
 * Am also facing this issue.
 * In my case this happening by ‘**JetPack**‘ plugin.
 * Here the [LINK](http://www.integrityschoolportraits.com/appointments/), 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
 *  [FARAZFRANK](https://wordpress.org/support/users/farazfrank/)
 * (@farazfrank)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666305)
 * Same Here Too
 * [http://appointzilla.com/wordpress-google/?page_id=8](http://appointzilla.com/wordpress-google/?page_id=8)
 * Shortcode Loading Twice in page if ‘**JetPack Plugin Installed**‘.

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

The topic ‘Plugin shortcode loads content twice’ is closed to new replies.

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 5 replies
 * 4 participants
 * Last reply from: [FARAZFRANK](https://wordpress.org/support/users/farazfrank/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666305)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
