WordPress show all posts of a category
This tips, I will show you how to get all the POSTS of a category in WordPress. Imagine that, you have a category called PHP and you want to display all the post belongs to PHP. Here is the code-
Here in args category value is 1. That means you have to replace your category id.