[wp-hackers] Page Redirect from Shortcode

Bill Erickson bill.erickson at gmail.com
Thu Oct 6 15:32:25 UTC 2011


Or you can use Mark Jaquith's Page Links To plugin:
http://wordpress.org/extend/plugins/page-links-to/


---
Bill Erickson
WordPress Consultant
http://www.billerickson.net


On Thu, Oct 6, 2011 at 10:20 AM, Mike Little <wordpress at zed1.com> wrote:

> 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/thatwill 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
> into.
> http://pastebin.com/E9pH2rSW
>
> I've kept it as simple as possible, hopefully you'll be able to follow the
> code.
>
>
> Mike
>
> --
> Mike Little
> http://zed1.com/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list