Using PHP Redirect Script together with Custom Fields (WordPress)? [on hold]
- by Alex Scherer
I am currently trying to make yoast's link cloaking script ( Yoast.com script manual // Github Script files )
work together with the Wordpress plugin Advanced Custom Fields.
The script fetches 2 values (redirect id, redirect url) via GET and then redirects to this particular URL which is defined in a .txt file called redirects.txt
I would like to change the script, so that I can define both the id and redirection URL via custom fields on each post in my WP dashboard..
I would be really happy if someone could help me to code something that does the same as the script above but without using a redirects.txt file to save the values but furthermore gets those values from custom fields.
Best regards !
Alex