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.
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..
Hi Duryab,
Our Glossary section is a custom post type. All terms listed there are individual posts in that custom post type.
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..
Is there any way to list the specific number of posts of specific category?
The plugin is not working in Chrome and Safari?! Does someone has the ame problem with this plugin?
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?
Hey dude what to do if I want to list the posts on my sidebar only….
Check out our guide on how to fix WordPress white screen of death.
Hi
I want plugin feature get post title post category and subcategory. it is possible.
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.
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?
Awesome trick, dudes. Thank you very much. I will use this in a recipes website.
T h a n k y o u
Hi,
can this be adapted to Pages? (I’ve already installed a plugin to make categories available to pages, too).
Thanks.
It should work with pages if you have enabled categories for pages.
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…..
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!
Your theme’s category.php template should have the_thumbnail(); tag before or after the post title to display post thumbnail.
For more information see our guide on how to add post thumbnails or featured images in WordPress.
Hello, is there a way to list all of the categories in a single page?
I want to list a specific Tag posts on a Page, is it possible
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
Hey Gabriel,
Use this tutorial: https://www.wpbeginner.com/wp-themes/how-to-use-shortcodes-in-your-wordpress-themes/
hey – i got it and it was really easy. Sorry to trouble you.
dave
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
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?