Hi -
I've creating tumblr style custom post types for video, photo, quote etc.,
How do I use my default post categories for them, as the different post types could be appearing in the same category?
Hi -
I've creating tumblr style custom post types for video, photo, quote etc.,
How do I use my default post categories for them, as the different post types could be appearing in the same category?
You might want to look at Post_Formats first.
no , I need other custom types as well. Post formats is too limited.
I think i found it -
'taxonomies' => array('category')
added to register_post_type
Any idea how I get the custom post types to appear in archives.php?
This seems to work for both archives and categories - is this the right way to do this? (It's in functions.php)
function my_get_posts( $query ) {
if ( is_home() || is_category() || is_archive() && false == $query->query_vars['suppress_filters'] )
$query->set( 'post_type', array( 'post', 'quotes' ) );
return $query;
}You must log in to post.