How to list particular categories posts in wordpress?


Apr 19 2012
blog-image
admin Wordpress 3 Comments

We found many people asking that, “How to show posts of a particular category in wordpress?”, We can’t stop our self to write the code for it, so that the wordpress users can breathe easily.

You can use the wordpress’s default functions to display the desired output. Here we are using get_posts() function of wordpress. The name itself suggests that it is used to get the posts. 🙂

Here is the code to list down the posts of a particular category :

You can also use the different combinations of below arguments to get your desired output. If you don’t want to do then we are here to do it for you. 🙂

Don’t forget to replace the CATEGORY_ID with your categorie’s id whose posts you want to list down.

You can add your own html format for listing the posts.

Its pretty Simple !!! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Get News In Your Inbox

Name
Email *

Popular Blogs

recent-blog-image
How to create callback functions for jQuery plugins & extensions?

Most of the time custom jQuery plugins and extensions that we create do not use callback functions. They usually simply work on DOM elements or do some calculations. But there…

Continue Reading
recent-blog-image
Top 5 Best Ecommerce plugins in WordPress

Nowadays online shopping has increased and become very convenient shopping place for users, you may be wanting to start your own online shop so you can unleash your products to…

Continue Reading
recent-blog-image
10 Best WordPress Live Chat Plugins for Customer Support

The Live chat is the common thing now days, if you own any eCommerce website or if you are the service provider. It makes easy for your customers to contact…

Continue Reading
recent-blog-image
Free plagiarism checker sites

Plagiarism is the process of taking someone’s ideas & work and passing them off as one’s own. Prevent Plagiarism to check originality of content is the most important factor for…

Continue Reading
recent-blog-image
How to show wordpress posts in other CMS?

Currently since from few weeks, I am working on Expression Engine. Now you thought that what is Expression Engine. Now let me explain you in little brief. Expression Engine is…

Continue Reading

Remarkable Facts About Us

0 %
Client satisfaction
0 +
Years of Experience
0 +
Happy Clients
+
Projects Accomplished

Ready to Get Started ?