WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to List Category Posts in a WordPress Post or Page with Shortcode

How to List Category Posts in a WordPress Post or Page with Shortcode

Last updated on April 26th, 2012 by Editorial Staff
29 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to List Category Posts in a WordPress Post or Page with Shortcode

Have you ever found a need to list the posts from a specific category on a specific post or a page? In the past, we have used custom page templates and hard coded a solution in. However, recently we have discovered a way that allows you to list category posts in WordPress Posts or Page with a shortcode.

First thing you need to do is install and activate the List Category Posts plugin. Once you have activated the plugin, you can simply use the shortcode anywhere in your post or page.

The shortcode is [catlist] which accepts numerous parameters. First and foremost it accepts the category name or ID parameter. Example would be like:

[catlist name=tutorials]

If you want multiple categories, its best to use the IDs. The shortcode would look like this:

[catlist id=7,24,32]

The shortcode accepts bunch of other parameters including tags, orderby, order, numberposts, date, author, excerpt, excludeposts, comments, thumbnail, custom fields, etc. The full list of parameters can be found in the Other Notes section of the plugin.

The plugin also has a widget for the sidebar that you can use by going to Appearance » Widgets.

Download List Category Posts

29 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

24 Comments

Leave a Reply
  1. Duryab Aziz says:
    Dec 24, 2017 at 1:34 pm

    Hi there WpBeginner Staff, I am looking for “how can I list any custom taxonomies in my WordPress page” Like you did and created this page “https://www.wpbeginner.com/glossary/”

    You can all glossary terms listed on this Glossary page and these are clickable links. I was searching for this and came across to this post but this was not exactly I was looking for, I hope you understand my question…

    Please help me build this type of page that will have all my custom taxonomies, like “Movies”, that I have created..

    Thanks..

    Reply
    • WPBeginner Support says:
      Dec 25, 2017 at 1:53 pm

      Hi Duryab,

      Our Glossary section is a custom post type. All terms listed there are individual posts in that custom post type.

      Reply
      • Duryab Aziz says:
        Jan 9, 2018 at 4:17 am

        Hello there, thanks for replying.

        I got you, but I have created some new taxonomies “categories and tags” in my default WordPress post type. Say, “Albums, Movies, Singers etc” I did not create any custom post types.

        Not I want to list these taxonomies in my WordPress side bar and show in post meta. Which I cannot do by default.
        And I also want to create a New WordPress page for each taxonomy and list all terms on page, “for instance, I want to create a page with title “Albums” that will list and show all terms under taxonomy “Albums”

        Thanks please help me..

        Reply
  2. MI Ansari says:
    Jun 24, 2017 at 1:34 am

    Is there any way to list the specific number of posts of specific category?

    Reply
  3. HansD says:
    May 26, 2017 at 7:02 am

    The plugin is not working in Chrome and Safari?! Does someone has the ame problem with this plugin?

    Reply
  4. A Frij says:
    Apr 9, 2016 at 4:39 pm

    Since the update to WordPress 4.2.2, the List Category Posts plugin does not work. The forum seemed to suggest you just needed to reinstall it, but this did not work. Is there another way to list excerpts of posts by category on a page?

    Reply
  5. Pawan Diwakar says:
    Nov 23, 2015 at 2:44 am

    Hey dude what to do if I want to list the posts on my sidebar only….

    Reply
  6. WPBeginner Staff says:
    Jun 23, 2014 at 10:18 pm

    Check out our guide on how to fix WordPress white screen of death.

    Reply
    • md sohel says:
      Oct 21, 2015 at 11:57 am

      Hi
      I want plugin feature get post title post category and subcategory. it is possible.

      Reply
  7. Junaid says:
    Jun 21, 2014 at 2:49 pm

    This is the shortcode that I used:
    [catlist name=Football]

    [catlist name=posts excerpt=yes orderby=date numberposts=40 By author=yes excerpt_size=30 catlist thumbnail=yes catlist thumbnail_size=600,300]

    The category name doesn’t show the posts from that selected category either, but instead shows all of my posts from every category even though I specified a particular category to display posts from.

    Reply
  8. Junaid says:
    Jun 21, 2014 at 2:45 pm

    Can you tell me how to change the alignment of the article excerpts so that the excerpts don’t look clunky with half of the first line on the bottom right of the thumbnail image rather than the preferred and cleaner method where the whole of the excerpts are cleanly on the bottom of each thumbnail image?

    Reply
  9. Exnius says:
    Apr 8, 2014 at 6:02 am

    Awesome trick, dudes. Thank you very much. I will use this in a recipes website.

    T h a n k y o u :D

    Reply
  10. Fabrizio says:
    Mar 25, 2014 at 8:22 am

    Hi,
    can this be adapted to Pages? (I’ve already installed a plugin to make categories available to pages, too).

    Thanks.

    Reply
    • WPBeginner Support says:
      Mar 25, 2014 at 3:04 pm

      It should work with pages if you have enabled categories for pages.

      Reply
  11. Daniel says:
    Mar 16, 2014 at 6:37 am

    Can anybody help me out to find out the way to know the shortcode to call only all the sub categories for a category on my blog well, waiting for the reply…..

    Reply
  12. Teresa says:
    Feb 9, 2014 at 10:23 pm

    I love this plugin! But, I do have a question. I’m trying to get the thumbnail image to display before the Post Title, and I cannot figure out how to do it. I’m sure there is some easy step that I am just missing, but I am drawing a blank. Any suggestions would be greatly appreciated!

    Reply
    • WPBeginner Support says:
      Feb 13, 2014 at 8:15 pm

      Your theme’s category.php template should have the_thumbnail(); tag before or after the post title to display post thumbnail.

      <?php the_post_thumbnail(); ?>
      

      For more information see our guide on how to add post thumbnails or featured images in WordPress.

      Reply
  13. Pranjal says:
    May 8, 2013 at 1:16 am

    Hello, is there a way to list all of the categories in a single page?

    Reply
  14. Umer Rock says:
    Mar 27, 2013 at 6:03 am

    I want to list a specific Tag posts on a Page, is it possible

    Reply
  15. gabriel says:
    Mar 13, 2013 at 5:46 am

    Hi, Thanks for this plugin it works great if I use it in the cms. But I want to use it on a template and ‘hard code it i’ I tried [catlist name=list] or how can I get it to work on a normal php page?
    Thanks

    Reply
    • Editorial Staff says:
      Mar 13, 2013 at 2:23 pm

      Hey Gabriel,

      Use this tutorial: https://www.wpbeginner.com/wp-themes/how-to-use-shortcodes-in-your-wordpress-themes/

      Reply
  16. Dave Rozewski says:
    Feb 12, 2013 at 2:37 pm

    hey – i got it and it was really easy. Sorry to trouble you.

    dave

    Reply
  17. Dave Rozewski says:
    Feb 12, 2013 at 2:27 pm

    Hey it worked! Thanks. However what would be really useful if I could show a category of posts only on one page. Maybe this does that and I don’t know how.

    anyway, thanks.

    Dave

    Reply
  18. Brad Paterson says:
    Jun 25, 2012 at 6:16 am

    This is great. I have the plugin installed and it works well and is much easier than coding custom pages. Would be great to have the posts shown in more detail (e.g. thumbnails, excerpts etc) as can be done with custom coding a page too. Anyone found an easy way to do this?

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
SeedProd Logo
SeedProd
Create beautiful custom landing pages - Drag & drop builder. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
Cozmoslabs
Cozmoslabs Coupon
Get 15% OFF on Cozmoslabs WordPress premium plugins.
CMS Commander
CMS Commander Coupon
Get 20% OFF on CMS Commander plugin for website management.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.