Posted By

hussong on 09/25/10


Tagged

page wordpress functions theme cms excerpts


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

adriennepalmer


Add excerpts to pages


 / Published in: PHP
 

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.)

  1. // add excerpt to pages
  2. add_post_type_support( 'page', 'excerpt' );

Report this snippet  

You need to login to post a comment.