WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I reset all variables in order to get the actual page content? I keep getting the last post's content I've called from a news-box I've implemented - but need the actual page's content ..

thanks

share|improve this question
    
I asnwered your other question about something similar, here, incase you missed it. – t31os Mar 5 '11 at 10:20
up vote 1 down vote accepted

Sounds like your news-box isn't using clean methods for pulling posts. I'm guessing that you are not using the get_posts() function. You're probably creating a new WP_Query object from scratch?

Try using get_posts(), as it will take care of keeping the original page query clean for you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.