WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.