Skip to content

Instantly share code, notes, and snippets.

@outsmart
Created October 21, 2015 05:37
Show Gist options
  • Save outsmart/04db66d1d565556c09ab to your computer and use it in GitHub Desktop.
Save outsmart/04db66d1d565556c09ab to your computer and use it in GitHub Desktop.

Revisions

  1. outsmart created this gist Oct 21, 2015.
    7 changes: 7 additions & 0 deletions wordpress-page-excepts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <?php
    //Add excepts to pages
    add_action( 'init', __NAMESPACE__ . '\\my_add_excerpts_to_pages' );
    function my_add_excerpts_to_pages() {
    add_post_type_support( 'page', 'excerpt' );
    }
    ?>