Title: Using Shortcoder in listings
Last modified: July 13, 2019

---

# Using Shortcoder in listings

 *  Resolved [olydel](https://wordpress.org/support/users/olydel/)
 * (@olydel)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/using-shortcoder-in-listings/)
 * Hi,
 * Thank you for your great plugin.
 * I’m trying to insert a shortcode -created with the shortcoder plugin and containing
   the tags “<style>” and “<script>”-, inside the listing description.
 * The problem is that the content of the listing is sanitized and this create a
   mess with my shortcode.
 * Is there any way to avoid this?
 * Thank you

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

 *  Plugin Author [pluginsware](https://wordpress.org/support/users/pluginsware/)
 * (@pluginsware)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/using-shortcoder-in-listings/#post-11731706)
 * Hi,
 * Actually, in our last version, we restricted HTML outputs. This is for security
   reason.
 * If you need to allow script, please open the below file,
 * /wp-content/plugins/advanced-classifieds-and-directory-pro/public/partials/listing/
 * Search the below code in the above file:
 * `<?php echo wp_kses_post( $description ); ?>`
 * Replace the above code with the following code:
 * `<?php echo $description; ?>`
 * Finally, save the file and check.
 * Thanks
 *  Thread Starter [olydel](https://wordpress.org/support/users/olydel/)
 * (@olydel)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/using-shortcoder-in-listings/#post-11748977)
 * Sorry for the late reply.
 * It works like a charm! Thank you!
    -  This reply was modified 6 years, 10 months ago by [olydel](https://wordpress.org/support/users/olydel/).

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

The topic ‘Using Shortcoder in listings’ is closed to new replies.

 * ![](https://ps.w.org/advanced-classifieds-and-directory-pro/assets/icon-128x128.
   png?rev=1506527)
 * [Advanced Classifieds & Directory Pro](https://wordpress.org/plugins/advanced-classifieds-and-directory-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-classifieds-and-directory-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/reviews/)

## Tags

 * [sanitizing](https://wordpress.org/support/topic-tag/sanitizing/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)

 * 2 replies
 * 2 participants
 * Last reply from: [olydel](https://wordpress.org/support/users/olydel/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/using-shortcoder-in-listings/#post-11748977)
 * Status: resolved