[wp-hackers] Ignore Portions of URI

DD32 wordpress at dd32.id.au
Mon Jan 12 12:52:40 GMT 2009

You'll need to define some new rewrite rules if you want to use that
type of structure, Heres an example plugin i wrote a while back for
someone: http://dd32.id.au/files/wordpress/test-rewrite.php

2009/1/12 Kaz <kazeneko at gmail.com>:
> Hello,
> I'm hoping someone on this mailing list can help.
> I need to run custom PHP code inside of WordPress generated posts and pages
> with an odd requirement. I need WordPress to ignore portions of the URI in
> order for WordPress not to load a 404 error, and for my script to be able to
> read its variables.
> Here's 2 examples:
>  <http://domainname.com/category/categoryname/title-of-the-post/123/2/5>
> http://domainname.com/category/categoryname/post-title/123/2/5<http://domainname.com/category/categoryname/title-of-the-post/123/2/5>
> <http://domainname.com/category/categoryname/title-of-the-post/123/2/5>
> http://domainname.com/pagename/123/2/5<http://domainname.com/category/categoryname/title-of-the-post/123/2/5>
> Where /123/4/5 are the variables.
> So, WordPress would need to ignore everything after "post-title" and
> "pagename". I can't find an existing plug-in, nor have I had any luck while
> going through WordPress' website.  If it helps any, WordPress' permalinks
> are set to: /%category%/%postname%/.
> All help will be greatly appreciated!
> --
> -Kaz
> _______________________________________________
> 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