I need to run custom non-WordPress PHP code inside of WordPress generated posts and pages with an odd requirement. My script works fine inside of WordPress when I predefine variables, but I have to pass my PHP script variables via the URL. The reason for this, is the script also runs on a non-WordPress site. I’ve spent hours searching for information on how to do this.
Here’s an example:
Where /123/4/5 are the variables.
I have no problem parsing the URL, just need to keep WordPress from seeing the variables and thus giving a 404 error.
An existing plug-in would do, or some pointers to get me started writing my own would be great!
Thanks in advance!
- The topic ‘Ignore Portions of a URL’ is closed to new replies.