WordPress.org

Ready to get started?Download WordPress

Forums

Always start a new post (6 posts)

  1. canalblues
    Member
    Posted 4 years ago #

    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

  2. Shane G
    Member
    Posted 4 years ago #

    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.

  3. canalblues
    Member
    Posted 4 years ago #

    What does 'login' have to do with it?

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

  4. yakuphan
    Member
    Posted 4 years ago #

    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.

  5. canalblues
    Member
    Posted 4 years ago #

    Thanks yakuphan, it worked!

  6. yakuphan
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.