• Resolved kellybaya

    (@kellybaya)


    Hello,

    I refer to a previous support answer where you mentioned the following:

    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.

    I need to also acheive the same result but I can not locate any file in the folder which contains that code. Could you please come back to me with the file name?

    • This topic was modified 6 years, 8 months ago by kellybaya.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pluginsware

    (@pluginsware)

    Plz search that code in the below file,

    /wp-content/plugins/advanced-classifieds-and-directory-pro/public/partials/listing/acadp-public-listing-display.php

    Thanks

    Thread Starter kellybaya

    (@kellybaya)

    Fantastic thank you for your quick reply!

    To save this code from overwriting upon update I have placed this modified file into /wp-content/themes/child-theme/advanced-classifieds-and-directory-pro/public/partials/listing. It does not reflect my template changes that I have added to the description field.

    As per support question https://wordpress.org/support/topic/template-override-not-working-6/, I also tried to place it in the folder /wp-content/themes/child-theme/acadp/listings/acadp-public-listings-list-display.php but this still is not reflecting. Do I need to do anything else?

    Many thanks
    Kelly

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

The topic ‘Shortcode using scripts’ is closed to new replies.