So I have several CPTs set up but I want to have all my default posts listed under /blog.
I was hoping I could somehow enable has_archive for the default post type but I have yet to succeed.
Any ideas?
add_action( 'init', 'enhance_post' );
function enhance_post( ) {
global $wp_post_types;
$wp_post_types['post']->has_archive = true;
$wp_post_types['post']->rewrite = array(
'slug' => 'blog',
'with_front' => 0,
'pages' => 1,
);
}
(the above doesn't seem to work)