[wp-hackers] Rewrite endpoints

scribu scribu at gmail.com
Mon Aug 31 23:33:00 UTC 2009


Hello,

I'm trying to get this:

/author/scribu/foobar/

to rewrite to this:

/?author=scribu&foobar=

I've tried using

add_rewrite_endpoint('foober', EP_AUTHORS);

but that didn't make any difference.

What I'm currently getting:

    [query_vars] => Array
        (
            [pagename] => author/scribu/foobar
        )


Any suggestions?


-- 
http://scribu.net


More information about the wp-hackers mailing list