• I tend to write long posts. How can I get the front page to just pull excerpts w/ a continue reading link so I can put 5 or 6 posts on the first page and it not take a year to scroll through them all?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same thing here! I don’t recommend to use a plugin. Less plugins the better!
    So can some WP Pro help us?

    Here’s how I did it. Open content.php and at around line 47 you’ll find this:

    <?php if ( is_search() ) : ?>

    Simply change to:

    <?php if ( is_search() || is_home() ) : ?>

    And hopefully it should work.

    It worked! But not the way i like it. Text is not formatted as it’s in the full post.
    Hope you understand what i mean.

    I’ve done this, and it does display the excerpt on the home page, but I wanted to limit the excerpt to 4o words and to have a read more link after the excerpt. I’ve done this in other themes in the past, but it’s not working in twenty fourteen.

    Wondering if that means excerpts are set up differently with this theme. Here’s the code I’m using – any help is appreciated – this is in my child theme’s functions.php file:

    function custom_excerpt_length( $length ) {
    	return 40;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
    
    function change_excerpt_more()
    {
    	function new_excerpt_more( $more ) {
    		return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">READ MORE</a>';
    		}
    	add_filter( 'excerpt_more', 'new_excerpt_more' );
    }
    add_action('after_setup_theme', 'change_excerpt_more');
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Continued on the associated theme’s subforum: http://wordpress.org/support/topic/home-page-excerpts-2

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post excerpts’ is closed to new replies.