WordPress References

How to Only Show Posts from a Single Category on WordPress

WordPress provides a very simple way for you to show blog posts on a single category. Just apply the following code where you want to display the posts: query_posts(‘cat=1’); while (have_posts()) : the_post(); the_content(); endwhile; Just replace the “1” in cat=1 with the correct category ID and it is good to go. For more details […]