Title: Write shortcode
Last modified: September 14, 2024

---

# Write shortcode

 *  Resolved [Ricsca2](https://wordpress.org/support/users/ricsca2/)
 * (@ricsca2)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/write-shortcode/)
 * I need to import pages that have a shortcode inside them.
 * [webdirectory-listings locations=”{regione[1]}”]
   The problem is that it gives
   me an error when I try to save because they are not good “”How should I rewrite
   the shortcode correctly?Thanks

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/write-shortcode/#post-18015703)
 * Hi [@ricsca2](https://wordpress.org/support/users/ricsca2/),
 * Please try escaping the shortcode with a backslash:
 *     ```wp-block-code
       \[webdirectory-listings locations="{regione[1]}"]
       ```
   
 *  Thread Starter [Ricsca2](https://wordpress.org/support/users/ricsca2/)
 * (@ricsca2)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/write-shortcode/#post-18019164)
 * Works… Thanks

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

The topic ‘Write shortcode’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ricsca2](https://wordpress.org/support/users/ricsca2/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/write-shortcode/#post-18019164)
 * Status: resolved