Created
August 15, 2017 18:19
-
-
Save andrewlimaza/7865bf39b1aa5fd583ef04843aced510 to your computer and use it in GitHub Desktop.
Add Excerpt Functionality To WordPress Pages
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
<?php | |
// Add this code to your child theme's functions.php file | |
function add_excerpt_to_wp_pages() { | |
add_post_type_support( 'page', 'excerpt' ); | |
} | |
add_action('init', 'add_excerpt_to_wp_pages'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment