[wp-trac] Re: [WordPress Trac] #9460: Add custom_url_func to be run
in template-loader.php
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 4 23:56:19 GMT 2009
#9460: Add custom_url_func to be run in template-loader.php
--------------------------+-------------------------------------------------
Reporter: mikeschinkel | Owner: mikeschinkel
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Permalinks | Version: 2.8
Severity: normal | Keywords: custom url
--------------------------+-------------------------------------------------
Comment(by DD32):
Looking at the example, I'd do that with WP_Rewrite and a custom query var
myself.
I think what would be better is a simpler way to manage endpoints and
startpoints in the rewriting code, for many people (esp. new people to
WordPress) its a real maze..
I've got this old example code (which was for 2.2 i think, and doesnt use
any of the API functions) which shows something basicly similar to what
mike wants: http://dd32.id.au/files/wordpress/test-rewrite.php which gave
the url's: http://dd32.id.au/artist/ http://dd32.id.au/artist/artist-1/
etc. (Its old example code, it doesnt work anymore, It needs to be
changed to insert the rewrite rules at the start rather than the end,
since WP 2.5+? included some greedy matching rules)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9460#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list