Swatist
8/21/2017 - 5:36 AM

Output Excerpt Manually in Wordpress

Output Excerpt Manually in Wordpress

<?php 
  $content = get_the_content(); 
  echo substr(strip_tags($content), 0, 130) . '...'; 
?>

refrence:
https://css-tricks.com/snippets/wordpress/output-excerpt-manually/
https://codex.wordpress.org/Function_Reference/wp_trim_words