Get the Posts of a Specific Category


The following snippet will get the posts of a specific category. So if you wanted to have a page that just shows posts of a certain category this would do it .

In this example we are going to get posts from the category with an ID of “5” and show a maximum of 10 posts. If you want to show all posts just change “10” to “0”

Leave a Reply

avatar
  Subscribe  
Notify of