WordPress.org

Support

Support » How-To and Troubleshooting » Always start a new post

Always start a new post

  • Hello,

    How can I configure wordpress to go to ‘New Post’ Page automatically instead of ‘Edit’ Page every time I press ‘Publish’ button?

    This happened automatically before I updated from 2.7 to 2.8

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    For that you need to edit wp-admin/wp-login.php file from your blog and need to give the path of the file which you want to be set in the redirection.

    Thanks,

    Shane G.

    What does ‘login’ have to do with it?

    I’m creating new pages and I’m already loged.

    For WordPress 2.8.4, open wp-admin/post.php file and find this code in line 46.
    $location = add_query_arg( ‘message’, 6, get_edit_post_link( $post_ID, ‘url’ ) );
    and change like this.

    //$location = add_query_arg( ‘message’, 6, get_edit_post_link( $post_ID, ‘url’ ) );
    $location = add_query_arg( ‘message’, 6, “post-new.php” );

    So, when you publish a post, you will be redirected a new post window. Unfortunatally, there is no a soft way.
    In this way, you can’t click ‘View post’ link.

    Thanks yakuphan, it worked!

    I edited my message, please try again.
    In new way, you will see “Post published” message.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Always start a new post’ is closed to new replies.
Skip to toolbar