• Resolved atagrill

    (@atagrill)


    When you do a search you get a listing of listings that fit the category. The title of the listing is a link to the full details of the listings.
    Can anyone give me tips on how can I add a link at the end of the excerpt instead of ” … “` (ie dot dot dot).
    Wordpress posts have this ability built in but I can’t find the equivalent in Acadp. Does it need a customizing?

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

    (@pluginsware)

    Yes, this requires customization. You should edit the files under,

    /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

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

    and change it as,
    <?php echo wp_trim_words( $post->post_content, $listings_settings['excerpt_length'], '<a href="' . esc_url( get_permalink() ) . '">' . esc_html( get_the_title() ) . '</a>' ); ?>

    But, instead of doing these changes directly in the above-mentioned files, I would recommend writing an override. So, your changes stay when you upgrade to our later versions. Kindly refer https://pluginsware.com/documentation/customizing-acadp-templates/ to write an override.

    Thread Starter atagrill

    (@atagrill)

    Thanks so much. Instead of having the name appear again I changed esc_html( get_the_title() ) to ‘ read more . . . ‘
    Very pleased!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link to Listing’ is closed to new replies.