• Resolved Brigitte

    (@pixeldiva14)


    I wanted to show the business contact info (address, phone #, website) on separate lines on the main listing page in grid view. When I enter the information in the content area in the backend everything looks fine. All three items are on separate lines, but on the fronted all the text runs into each other. It looks like the HTML <p></p> or <br>tags are being stripped out.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pluginsware

    (@pluginsware)

    Hi,

    Please try the below solution,

    1. Open the below files,

    /wp-content/plugins/advanced-classifieds-and-directory-pro/public/partials/listings/acadp-public-listings-grid-display.php
    /wp-content/plugins/advanced-classifieds-and-directory-pro/public/partials/listings/acadp-public-listings-list-display.php
    /wp-content/plugins/advanced-classifieds-and-directory-pro/public/partials/listings/acadp-public-listings-map-display.php

    2. Find the following code in the above files,

    <?php echo wp_trim_words( $post->post_content, $listings_settings['excerpt_length'], '...' ); ?>

    3. Replace the above code with the below code,

    <?php echo $post->post_content; ?>

    4. Finally, save the files and check your site.

    Thanks

    Thread Starter Brigitte

    (@pixeldiva14)

    Thank you, that worked. But every time the plugin gets updated it will get overwritten. Is there a way to make the changes outside of the plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML stripped on main listings page’ is closed to new replies.