Builder Blocks: Church - Example Customizations

From IThemes Codex
Revision as of 09:05, July 27, 2013 by Kristen (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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