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

RSS Icon Subscribe to comments

You need to login to post a comment.