• Hello! Thank you so much for this awesome plugin, just want to ask if there’s any way to use the exerpt content (from the get_the_excerpt function) in a post slider, instead of trimming the initial content of the post.

    Thanks!

Viewing 1 replies (of 1 total)
  • Hi !
    Try to change in line 32 of post-carousel.php in carousel-slider/templates/public
    :
    $more_text = apply_filters( ‘carousel_slider_post_read_more’, ‘ …’, $post );
    $_content = apply_filters( ‘the_content’, $post->post_content );
    $_excerpt = wp_trim_words( $_content, $num_words, $more_text );

    to

    $more_text = apply_filters( ‘carousel_slider_post_read_more’, ‘ …’, $post );
    $_excerpt = wp_trim_words( wp_strip_all_tags( $post->post_content ), $num_words, $more_text );
    $_excerpt = $post->post_excerpt;

    By the way that solve the pb of the latest upgrade that made my pages with post carousel hang !

    🙂

Viewing 1 replies (of 1 total)

The topic ‘Post Slider – display excerpt section’ is closed to new replies.