• I am using this code in functions.php to so it will show on the front of my site and show the read more, but the read more is not showing, your help would be appreciated.

    function new_excerpt_more( $more ) {
        return ' <a href="'. get_permalink( get_the_ID() ) . ' '
               . __('
    
     Read More') . '';
        }
    
    	add_filter( 'excerpt_more', 'new_excerpt_more');

    Here is my site demo link: https://visionedc.com/2015/news

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

Viewing 1 replies (of 1 total)
  • Limiting number of words after which ‘read-more’ will appear may fix your issue. Try this :

    <?php
    
    // custom excerpt length
    function themify_custom_excerpt_length( $length ) {
       return 20;
    }
    add_filter( 'excerpt_length', 'themify_custom_excerpt_length', 999 );

    All the best!

Viewing 1 replies (of 1 total)
  • The topic ‘except_more read more button’ is closed to new replies.