• ayam maiself

    (@electropatata)


    Hello
    I’ve seen that the text (more…) is shows in excerpts if there is not excerpt defined in the post and it’s used the “read more” block in the post description (some post types of some plugins don’t have excerpt available so it’s needed to use the “read more”)…

    I’ve changed the PHP code of the pluging to avoid it in the file:
    dd-post-carousel/public/class-owl-carousel-2-public.php

    I’ve made an easy change in the line 271 to make the excerpt in this case don’t show the (more…) text.
    ORIGINAL 271 CODE LINE
    $theContent = apply_filters( ‘the_content’, get_the_content() );
    CHANGED 271 CODE LINE
    $theContent = apply_filters( ‘the_content’, get_the_content(”) );

    I’ve only add the quotes to the first parameter of get_the_content function, to delete the more_link_text

    That’s all… because the (more…) is not good for me…
    Maybe in the next update this can be an option to be changed or a default behaviour

    ?Thanks for the plugin!

  • The topic ‘(more…) shows in excerpt with “read more” block used in post description’ is closed to new replies.