Using Switch case statement with query_posts
-
I have 2 different columns on my page template, and each column is using a different query to pull in the content. I am trying to change the query I am doing based upon the page that the user is on. I want to do this so I don’t have to create a separate template for each page since they all have the same layout but need to use a different query in the loop. Is there something wrong with how I am doing this? Can this be done in two different areas on a page? Any ideas on how to make this work?
Below is the code I have so far:
[Code moderated as per the Forum Rules. Please use the pastebin]
Any help would be greatly appreciated.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using Switch case statement with query_posts’ is closed to new replies.