Posts loop displaying the same post data
Try using WP_Query instead. So the code would be like: <?php $args = array( ‘posts_per_page’ => 5, ‘cat’ => 2, ‘offset’ => 0, ‘order’ => ‘date’, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’ ); $post_query = new WP_Query($args); if($post_query->have_posts()) : while($post_query->have_posts()) : $post_query->the_post(); ?> <div><?php the_permalink(); ?></div> <div><?php the_title(); ?></div> <div><?php the_content(); ?></div> <?php endwhile; endif; … Read more