Tag Info

Hot answers tagged


post is not a valid value for orderby parameter neither DESC. You can choose any of these values. Also, you should stop using query_post. <?php $args = array( 'post_type' => 'ranking', 'orderby' => 'menu_order', 'order' => 'DESC', ...


Can someone please explain how "$posts" is used within the loop? It isn't. It returns the array of queried posts , but it is insignificant and not used at all: if you remove it than the code works the same: global $query_string; query_posts($query_string.'&cat=-9'); if (have_posts()) : while (have_posts()) : the_post(); ... endwhile; endif; ...

Only top voted, non community-wiki answers of a minimum length are eligible