Builder Blocks: Church - Example Customizations

(Difference between revisions)
Jump to: navigation, search
(Created page with "== How to add manual excerpt support for Staff entries == If you would like to have Excerpt metabox in Staff entry edit screen, add the following in City Church child theme's...")
 
Line 1: Line 1:
 +
__TOC__
 +
 
== How to add manual excerpt support for Staff entries ==
 
== How to add manual excerpt support for Staff entries ==
  

Revision as of 09:05, July 27, 2013

Contents


How to add manual excerpt support for Staff entries

If you would like to have Excerpt metabox in Staff entry edit screen, add the following in City Church child theme's functions.php:

// =========================================
// = Add Excerpt support to Staff entries =
// =========================================

add_action('init', 'add_excerpt_support_to_staff');

function add_excerpt_support_to_staff() {
	add_post_type_support( 'staff', 'excerpt' );
}
2011-12-08 19-51-06.png
2011-12-08 19-52-28.png
2011-12-08 19-58-07.png

Source: http://codex.wordpress.org/Function_Reference/add_post_type_support

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox