Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can change front page and designate another as blog via Reading settings.

See Creating a Static Front Page in Codex.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.