Add posts from specific categories on pages and posts with Shortcodes

Hello Guys, today we are going to see how a Plugin works that I have loved and can be very useful for you.

It is called “List category posts” and this Plugin will allow us to be able to list articles of a certain category within a page or an entry using shortcode.

The plugin is free and you can download it from here:
https://es.wordpress.org/plugins/list-category-posts/

Let's see how it works.

If you are not subscribed to the Premium Zone you can give sign up for €10/month here

Subscribe to my channel:  

As always, the first thing is to download the Plugin.

We go to Plugin, add New and look for List category Posts, Install and Activate.

plugin list category posts

Next we open the entries and go to Categories to be able to know the ID of the categories that we have created. (The id is the number that appears in the address bar after the Tag)

wp categories id

If I wanted to list the articles of a certain category, I would do the following: I open a page: I give it a name and then inside the HTML I must put the Shortcode that the Plugin gives me.

For my example it would be the following:
[Catlist id=2]

shortcodes categories list

When you click View Page, you would have a page like this:

result list categories

This works great when I want to link multiple topics within an article.

Here's another example of how it can be used:

list in category

This that I show you is the most basic way to list the articles of a category, but within the Plugin notes there are more codes that we can use.

For example, I can make several categories appear in the same list, only placing the IDs separated by commas as in the following code:

[Catlist id=2,3]

This would look like this:

choose post categories

list display example

We can modify the shortcode so that much more articles from the categories are displayed.

To do this we must enter the following code:

[Catlist id=2,3 numberposts=20]

(It means that we want up to 20 articles of the selected categories to be displayed)

increase elements list

I invite you to review all the possibilities of listing articles. In particular there is one that I like, which is the possibility of including thumbnail images of the article.

The shortcode is: [Thumbnail=yes]

shortcode image more elements

It would look like this:

aspect category list

Take a closer look at the code and all the variables you might use. As I told you, I found it very interesting and I am going to use it more frequently now that I know it.

I hope you liked this video, see you in the next one 😉

Leave a comment