[wp-hackers] Any alternative to $_SERVER['QUERY_STRING'] for SEO
friendly URLs?..
scribu at gmail.com
scribu at gmail.com
Fri Dec 26 20:47:49 GMT 2008
Do a var_dump on the global $wp_query and see if you can use that.
On 12/26/08, dave jaggy <jayarjo at gmail.com> wrote:
> I'm writing plugin, which heavily depends on the current url. It's ok
> when everything is set to default and I got usual query_string uri's.
> But when I switch on SEO friendly urls, my plugin stops working. Or in
> other words $_SERVER['QUERY_STRING'] on which I base my switch()
> syntax becomes empty. Is there any alternative for SEO friendly urls?
> Maybe components of the permalink got dumped in some structure
> somewhere in WP's global space? Or something else?..
>
> Dave
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
http://scribu.net
More information about the wp-hackers
mailing list