1. Home
  2. Docs
  3. Shortcodes
  4. Blog Shortcode

Blog Shortcode

The Blog Shortcode displays an archive of all your Blog Posts in a nice layout.

Our themes allow you to paste the blog archive shortcode to any page and configure in how many columns you’d like to display them. All this can be set for specific device sizes. You can also define which category of posts you’d like to display, and how many.

The Blog Shortcode has many behaviours.

  • Desktop Columns: You can configure the amount of columns your blog archive will display for desktop devices, by setting a number in the desktop-columns=”” attribute. If no value is specified, the default number of columns is 3.
  • Tablet Columns: You can configure the amount of columns your blog archive will display for tablet devices, by setting a number in the tablet-columns=”” attribute. If no value is specified, the default number of columns is 2.
  • Small Columns: You can configure the amount of columns your blog archive will display for smartphone devices, by setting a number in the small-columns=”” attribute. If no value is specified, the default number of columns is 1.
  • Category: if you’d like to display posts that are found under a certain category, you can specify the category name in the category=”” attribute. If not specified, the shortcode will display all posts.
  • Count: if you’d like to display a certain number of posts, you can specify the count in the count=”” attribute. If not specified, the shortcode will display all posts.

Usage:

[​nyvo​blog desktop-columns="3" tablet-columns="2" small-columns="1" category="" count=""]

Output:

See Demo Here


Blog Sidebar

Our themes have a dedicated sidebar for the blog. The shortcode that can be used is:
[​nyvo​widget sidebar="blog"]
More about widgets here

Was this article helpful to you? No Yes

How can we help?