Showing post excerpts instead of full posts in wordpress

Twenty Fourteen theme:

Step 1.

Modify the content file (content.php)
Replace

the_content

by

the_excerpt

Step 2.

Add the following code to functions.php

function new_excerpt_more($more) {
global $post;
return '...<a class="moretag" href="'. get_permalink($post->ID) . '"><br><br>Continue reading →</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');

Step 3.

Style moretag class as needed in css

via WordPress › Support » Post Excerpts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.