query_post only works in index
Hi, I am trying to use query_posts from withing a page template…it doesnt work.
Just for tests I have copied the code from the index page which words and pasted on the template page and it didnt work.. this is what I have in my page template
nothing shows up at all. It only works if I remove the $query_string variable, but then the Previous and Next links dont work.
I have read over and over forum questions and they all say to use the query_post as it is on the top…and i use it on the index page, but it wont work on a template page or a category page
- The topic ‘query_post only works in index’ is closed to new replies.