Hello, My problem are that when ever i pass a query it shows one post extra then limited, here's the code <?php query_posts('cat='.$catnip2.'&order=DESC&orderby=date&posts_per_page=3'); if (have_posts()) : $count = 0; while(have_posts()) : the_post(); $count++; $postimg = post_thumbnail_wpden(); ?> <!-- HTML Loop Data Here --> <?php endwhile; endif; wp_reset_query(); ?> PHP: so according to this code it should only show 3 posts, but its showing 4 posts, and also in some of categories were the posts are then also the query is not showing their posts any idea ?
i already looked up to WP Codex, but i just hate this problem, everything was going fine, but it completely messed up when i imported a XML , from WordPress.org that has dummy data
Use this! It will helps you <?php query_posts('cat='.$catnip2.'&order=DESC&orderby=date&showposts=3&ignore_sticky_posts=1');?> PHP: