Created
August 24, 2018 17:46
-
-
Save chengguizi/71beb1faa26aa70b0c332827728c8908 to your computer and use it in GitHub Desktop.
Enable Excerpt on Pages (WordPress)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'init', 'my_add_excerpts_to_pages' ); | |
| function my_add_excerpts_to_pages() { | |
| add_post_type_support( 'page', 'excerpt' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment