Custom Query Conditional Template Tags
-
I want to pass custom query arguments to a conditional statement in my templates.
Here’s an example of one of my custom queries:
?page_id=44<strong>&myparam=android</strong>I need to figure out a conditional statement that will take the parameter (either android, iphone, or blackberry) and echo or include a specific chunk of html/tags.
I know how to do everything except grab the argument from the query (I know, serious PHP noob stuff :-).
The conditional statement will be outside of The Loop.
Any help is greatly appreciated. Thanks!
The topic ‘Custom Query Conditional Template Tags’ is closed to new replies.