wp_reset_query doesn’t seems to work
-
I’m using the below to perform a query.
query_posts(‘v_sortby=views&v_orderby=desc’)
$recent = new WP_Query(“cat=176&showposts=5”); while($recent->have_posts()) : $recent->the_post();What I understand from it is that query_posts will alter the way a query method. I am experiencing that as it ‘molested’ all of my other queries that is loaded on the same page and turns all of them into sortby views(WP-PostViews).
I read somewhere that using wp_reset_query(); could set the query back to it’s original state but it ain’t happening in my case. Can any experts suggest something else?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_reset_query doesn’t seems to work’ is closed to new replies.