Add excerpts to pages


/ Published in: PHP
Save to your folder(s)

Adds support for excerpts in WordPress pages. Great for using WordPress as a CMS. A text field appears in the admin panel and you can pull the excerpt from your template files (for teaser texts etc.)


Copy this code and paste it in your HTML
  1. // add excerpt to pages
  2. add_post_type_support( 'page', 'excerpt' );

Report this snippet


Comments


You need to login to view comments.