Blog Carousel Shortcode

Last Updated on

The blog carousel shortcode displays a list of specified blog posts in a carousel. This shortcode allows you to display a specified amount of posts with an option to show the excerpt.

Note that if you are looking to create a blog page with many more customization and options, read the Blog shortcode and Displaying blog posts article.

To see the blog carousel shortcode in action, check out the demo.

In this article

Creating Blog Posts

Blog carousel shortcode displays blog posts. In order for the shortcode to have something to display, blog posts must be added. For more information about creating blog posts, read creating a blog post article.

To add the blog carousel:

Add or edit an existing page.
In Visual Composer section, Click + button.

Blog carousel shortcode - visual composer section

In Add Element pop-up screen, search for Posts Carousel and click on it to be added to the page.

Blog carousel shortcode - Add element

When the shortcode is added, a new pop-up screen called Posts Carousel Settings opens. It allows you to configure the shortcode settings.

Blog carousel shortcode - Posts carousel settings

Click Save changes and publish or update the page to check the result.

Showing Specific Posts

There are three settings in posts carousel settings pop-up which allow you to show the items based on specific categories, IDs or authors: Select Specific Categories, Select Specific Posts and Select Specific Authors.

Setting Description
Select Specific CategoriesShows items only from specified categories.
Select Specific PostsShows only the specified posts.
Select Specific AuthorsShows only posts from the specified author.
Note: To learn more about these three settings, read Configuring shortcode’s sorting settings article.

Altering the Posts Sorting

There are two settings in posts carousel settings pop-up which allow you to alter the items’ sorting: Order and Orderby

By default, the order and orderby settings are set to Ascending and Date therefore it sorts the older items ahead of newer items.

OrderSets the ascending or descending order of the Orderby parameter.
OrderbySorts the items based on the selected parameter (date, menu order, title, …).
Note: To learn more about these two settings, read Configuring shortcode’s sorting settings article.

Configuring the Shortcode

There are 4 settings in the posts carousel settings pop-up to customize how the shortcode works.

Heading titleDisplays title above the blog carousel.
View all pageSets a custom URL for the view all link above the blog carousel.
How many postsDisplays a specific amount of posts.
Enable excerptDisplays excerpt for the posts.
Was this helpful?
Previous Article:
Next Article:

Can't find what you're looking for?

Open New Ticket