Logo Logo Logo Logo Logo
  • Work Overview
  • Code Snippets Central
  • About
  • Contact
  • Work Overview
  • Code Snippets Central
  • About
  • Contact
Back to all articles →

Topic: Actions and Filters / Functions PHP File / Wordpress

08 Apr Add excerpt to pages in WordPress

Posted at 13:51h in Actions and Filters, Functions PHP File, Wordpress by Atkinson
// Goes in functions.php file. Add excerpt to pages.
add_action( 'init', 'custom_add_excerpts_to_pages' );
function custom_add_excerpts_to_pages() {
    add_post_type_support( 'page', 'excerpt' );
}


Facebook • Instagram • Dribbble • Twitter • LinkedIn
Copyright © Janet Atkinson 2023. All Rights Reserved.
Images and/or Artwork may not redistributed, reproduced, or republished without prior written permission.


For fine art painting and other personal work by Janet Atkinson please visit janetatkinsonstudio.com