• Resolved Houdini

    (@romariokg)


    Hi, I need to display a short description from description on a classifieds page in grid mode.

    I paste the code where I need it:

    <?php if ( $display['excerpt'] ) : ?>
    <?php
    $excerpt = Helper::get_current_post_content( $listing_post );
    $excerpt = wp_trim_words( $excerpt, $display['excerpt_limit'] );
    ?>
    <p class="rtin-excerpt"><?php echo esc_html( $excerpt ); ?></p>
    <?php endif; ?>

    In response I receive an empty field and 3 dots. How can I make this work in grid mode?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    Please, check firstly that are you getting expected word limit or not there and also you can use get_the_excerpt function.

    I know, you are using our pro theme ClassiList. Please, create ticket from our site for this kind of theme related custom code.

    Thank you

    Thread Starter Houdini

    (@romariokg)

    Hi, I know about the get_the_excerpt function. I wanted to use the standard function that is in your plugin, I am satisfied with the number of words that the function produces.

    Need to create a ticket?

    • This reply was modified 3 months ago by Houdini.
    Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    May be that function from theme. Yes, please create ticket from our site.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.