Skip to content

Instantly share code, notes, and snippets.

@chengguizi
Created August 24, 2018 17:46
Show Gist options
  • Select an option

  • Save chengguizi/71beb1faa26aa70b0c332827728c8908 to your computer and use it in GitHub Desktop.

Select an option

Save chengguizi/71beb1faa26aa70b0c332827728c8908 to your computer and use it in GitHub Desktop.

Revisions

  1. chengguizi created this gist Aug 24, 2018.
    4 changes: 4 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    add_action( 'init', 'my_add_excerpts_to_pages' );
    function my_add_excerpts_to_pages() {
    add_post_type_support( 'page', 'excerpt' );
    }