[wp-hackers] Integrate URLs from custom plugins?

Alex Günsche ag.ml2007 at zirona.com
Sat Jun 2 00:21:50 GMT 2007


On Fri, 2007-06-01 at 19:51 -0400, Boris Anthony wrote:
> the reason I want to forward to another template is because, for the  
> map for example I would incude all the stuff I need to display a map  
> (and the whole layut wuld be different anyways), and for stats as well.

I think the easiest way would be with
	if ( false !== strpos($_SERVER['REQUEST_URI'], '/map') )
or
	if ( '/map' == substr($_SERVER['REQUEST_URI'], -4, 4) )

and use the template_redirect hook (as Jennifer proposed) in a plugin.

HTH

Alex


-- 
Alex Günsche, Zirona OpenSource-Consulting
http://www.zirona.com/ | Hilfe für das HQ AC: http://www.prohq.de
PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc



More information about the wp-hackers mailing list