Title: Error when using shortcode
Last modified: February 4, 2022

---

# Error when using shortcode

 *  [markchanda](https://wordpress.org/support/users/markchanda/)
 * (@markchanda)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/)
 * Hi
 * I am trying to create a slider for Amazon products on my search travel guide,
   but when I try to use the shortcode on my listing pages, it gives this error:
   [https://snipboard.io/DjOSLi.jpg](https://snipboard.io/DjOSLi.jpg)
 * Please advise. Do you have a script I can load in the header before hand?
 * Thanks
 * Mark
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-using-shortcode-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327386)
 * Never seen this before. How are you inserting this shortcode?
 * Test inserting the shortcode on a standard page (without the accordion) – maybe
   there is an issue with your accordion recognising shortcodes.
 *  Thread Starter [markchanda](https://wordpress.org/support/users/markchanda/)
 * (@markchanda)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327403)
 * Hi,
 * Just the regular shortcode i.e. [slide-anything id=’11805′]
 * Also just pasted into regular wordpress editor.
 * Thanks
 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327404)
 * And did it work?
    (in the regular WP editor?)
 *  Thread Starter [markchanda](https://wordpress.org/support/users/markchanda/)
 * (@markchanda)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327419)
 * Not on the listing page I created.
 * I think i sent you the link.
 * [https://zamsitedemo.club/establishment/busanga-plains-camp/](https://zamsitedemo.club/establishment/busanga-plains-camp/)
 * It’s supposed to show in the section **Wildlife Gear**
 * Thanks
 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327439)
 * Ok, you are not understanding me.
 * As a test, create a new blank page. Use the standard WP Editor (not the page-
   builder) and just paste the shortcode into the editor box. Let see what happens
   with this?
 * Am just trying to ascertain whether your page-builder (what page-builder are 
   you using?) is having an issue with regards to executing a shortcode within an
   accordion.
 *  Thread Starter [markchanda](https://wordpress.org/support/users/markchanda/)
 * (@markchanda)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327453)
 * Simon,
 * The shortcode works on a regular page, but not on the listing page. I am using
   a listing directory called Listar.
 * [https://themeforest.net/item/listar-wordpress-directory-theme/23923427](https://themeforest.net/item/listar-wordpress-directory-theme/23923427)
 * Thanks
 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327467)
 * Ok, is there another shortcode (e.g. from another plugin) that you can test inside
   the Listar page-builder/plugin. Am trying to see if there is an issue with Listar
   using shortcodes?
 *  Thread Starter [markchanda](https://wordpress.org/support/users/markchanda/)
 * (@markchanda)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327492)
 * Simon,
 * Yes there is. I tried to install the Elfapps Tripadvisor shortcode i.e.
 * <script src=”[https://apps.elfsight.com/p/platform.js&#8221](https://apps.elfsight.com/p/platform.js&#8221);
   defer></script>
    <div class=”elfsight-app-0b8cd4c6-2905-4d21-8da3-d70d73671fa9″
   ></div>
 * So we solved this issue by using a script plugin called Insert Headers and Footers
   and inserting <script src=”[https://apps.elfsight.com/p/platform.js&#8221](https://apps.elfsight.com/p/platform.js&#8221);
   defer></script> in the header section – and <div class=”elfsight-app-0b8cd4c6-
   2905-4d21-8da3-d70d73671fa9″></div> in the listing page.
 * Thanks
 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327540)
 * This type of workaround solution will probably not work with Slide Anything, 
   because the JavaScript is not a static file, but is generated dynamically for
   each slider.
 * Have you asked Listar why their plugin has issues with shortcode content and 
   can they provide a solution?
 *  Thread Starter [markchanda](https://wordpress.org/support/users/markchanda/)
 * (@markchanda)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327547)
 * Ok thanks Simon.
 * I will ask them.
 * Cheers

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

The topic ‘Error when using shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slide-anything.svg)
 * [Slide Anything - Responsive Content / HTML Slider and Carousel](https://wordpress.org/plugins/slide-anything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slide-anything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slide-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/slide-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slide-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slide-anything/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [markchanda](https://wordpress.org/support/users/markchanda/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/error-when-using-shortcode-4/#post-15327547)
 * Status: not resolved