[wp-hackers] Page Redirect from Shortcode
wordpress at zed1.com
Thu Oct 6 15:20:48 UTC 2011
On Thu, Oct 6, 2011 at 14:17, Christopher Ross <cross at thisismyurl.com>wrote:
> Claude, I have a code snippet at
> http://thisismyurl.com/blog/2011/01/19/redirecting-a-wordpress-post-with-custom-fields/that will do it, although looking at it ... i should really update that so
> it's better.
> Here's a better function for your functions.php file that will fire before
> WordPress generates the page.
> Now, add a custom field to your Post named "redirect" and if it's present,
> it'll cause a redirect.
In a similar vein, but without your client needing to add a custom field
(which is difficult for non-technical users), here is an update of Owen
Winkler's old Redirectify plugin which presents a meta box to type the URL
I've kept it as simple as possible, hopefully you'll be able to follow the
More information about the wp-hackers