WordPress.org

Ready to get started?Download WordPress

Forums

Ignore Portions of a URL (2 posts)

  1. Kazeneko
    Member
    Posted 5 years ago #

    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:
    http://domainname.com/category/categoryname/title-of-the-post/123/2/5
    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!

  2. Kazeneko
    Member
    Posted 5 years ago #

    I've continued to look for anything close to what I need, or any documentation on what I'd need to modify in WP to get this to work to no avail.

    Any help would be greatly appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags