Home » Wordpress » WordPress get all posts of a specific category

WordPress get all posts of a specific category

How to get all posts of a specific category or sub category in wordpress?Here I’m going to explain how to get all posts of a specific category or sub category.

You can execute wordpress query to get specific category details as follows.

This will return all posts of that category query.Now we can get all posts using while loop.

Her is the full code to get all details with thumbnails of each posts.

Tags

Similar posts