WordPress get all posts of a specific category

0

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.

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.