[wp-hackers] Custom Post Type Main Page
Devin Dixon
devin at tayloegray.com
Wed Aug 4 15:29:52 UTC 2010
Hey,
I am creating a custom post type for videos. The post type looks
something like this:
register_post_type('videos', array(
'label' => __('Videos'),
'singular_label' => __('Video'),
'public' => true,
'show_ui' => true, // UI in admin panel
'_builtin' => false, // It's a custom post type, not built in!
'_edit_link' => 'post.php?post=%d',
'capability_type' => 'post',
'hierarchical' => false,
'rewrite' => array("slug" => "video-library", 'with_front' =>
false), // Permalinks format
'supports' => array('title','author', 'editor' , 'thumbnail' ,
'excerpt' , 'page-attributes' )
));
So the permalink looks like: http://mydomain.com/video-library/video1
. My question is how do I get http://mydomain.com/video-library/ as a
main page to list all the videos that have been posted?
More information about the wp-hackers
mailing list