Hey just wondering is their any plugin out there or would it be possible after publishing a new post/page to redirect the user to it? Rather than back to the publishing panel.
Thanks,
Matthew.
Hey just wondering is their any plugin out there or would it be possible after publishing a new post/page to redirect the user to it? Rather than back to the publishing panel.
Thanks,
Matthew.
*Bump*
Anyone?
Hello? Could someone please help?
??
Hello?
same problem, 2.9.2
You could try this in your theme functions file:
add_filter('redirect_post_location', 'redirect_to_post_on_publish_or_save');
function redirect_to_post_on_publish_or_save($location)
{
if (isset($_POST['save']) || isset($_POST['publish'])) {
if (preg_match("/post=([0-9]*)/", $location, $match)) {
$pl = get_permalink($match[1]);
if ($pl) {
wp_redirect($pl);
}
}
}
}Hmm.. Works for posts but not pages. :/
This topic has been closed to new replies.