[wp-hackers] Overriding Existing Post Types

Lox lox.dev at knc.nc
Mon Jun 21 22:45:00 UTC 2010


To add excerpt, this does the trick:

register_post_type( 'page', array(
		'public' => true,
		'_builtin' => true, /* internal use only. don't use this when
registering your own post type. */
		'_edit_link' => 'post.php?post=%d', /* internal use only. don't use
this when registering your own post type. */
		'capability_type' => 'page',
		'hierarchical' => true,
		'rewrite' => false,
		'query_var' => false,
		'supports' => array( 'title', 'editor', 'author', 'thumbnail',
'excerpt', 'page-attributes', 'custom-fields', 'comments', 'revisions'
),
		) );

-- 
Lox
lox.dev at knc.nc


More information about the wp-hackers mailing list