• Resolved olydel

    (@olydel)


    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

    (@pluginsware)

    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

    (@olydel)

    Sorry for the late reply.

    It works like a charm! Thank you!

    • This reply was modified 5 years, 4 months ago by olydel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Shortcoder in listings’ is closed to new replies.