• Resolved totalgraybear

    (@totalgraybear)


    I tried getting help on the main forums, but no luck.
    So, $10 to the first one who gives me the right answer in detail. Thru PayPal. I am pretty desperate :((
    The Problem:
    By default, after submitting a blog post, user is redirected to a page that displays their post.
    Instead, I want to redirect them to a page of my choosing. How do I do that?

    I have tried looking at the the WP referrers and variables in edit-post-new.php, post.php, post-new.php etc. But can’t figure it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • By default, after submitting a blog post, user is redirected to a page that displays their post.

    On my (many) WP installs that doesn’t happen. The redirect after publishing a post – goes back to the empty Write Post subpanel. Or does “submitting” means a contributor without publishing capabilities?

    Thread Starter totalgraybear

    (@totalgraybear)

    Sorry about that. Yes, you are right.
    And I want it to go to another page of my choice.

    Thread Starter totalgraybear

    (@totalgraybear)

    I meant to say:
    Yes, you are right. The user is redirected to the empty Write Post subpanel after publishing a post. And I want it to go to another page of my choice.

    Thread Starter totalgraybear

    (@totalgraybear)

    ok. $15 for the correct answer….
    anybody?

    Thread Starter totalgraybear

    (@totalgraybear)

    Since there were no responses, I ended up digging up some more and found a way out.
    I hardcoded the variable $location in /wp-admin/post.php. Was originally:
    $location=”post-new.php?posted=$post_ID”
    $location is used this way: wp_redirect($location)
    Hope this helps out those who customize WP. Remember to consider all the cases for which $location (or the redirect call) needs to be changed in post.php.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘redirection after submitting blog’ is closed to new replies.