Tuesday 11 July 2017

How to add excerpt to page in WordPress?

By Default WordPress do not provide the excerpt functionality on pages like it provide on the posts

And on pages it does not show.

To add this feature in your WordPress website add the following code snippet in your theme function file.

function add_excerpt_to_page() {

 add_post_type_support( 'page', 'excerpt' );

add_action( 'init', 'add_excerpt_to_page' );


Load disqus comments