문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top