WordPress tutorials: Get post excerpt

Wpsnipp – If you do not provide an explicit excerpt to a post (in the post editor’s optional excerpt field), it will display an automatic excerpt which refers of the post’s content.Adding this PHP code within the loop of your wordpress theme will return the post excerpt.

 

 

<?php
the_excerpt();
?>

Be Sociable, Share!

Leave a comment