Besides showing your posts in WordPress’ native blog feed, there might be a case where you want to display some or all of your posts somewhere else inline with other content. This is usually not possible, but fortunately we have provided a [posts] shortcode making it possible to display your posts anywhere you like.
An example of the [posts] shortcode can be seen in the theme demo at the bottom of the front page under Latest Stories. There are three ways to add the shortcode on your site. You can type it manually inside your post with the WordPress editor, use the TinyMCE Shortcode editor, or use the page builder.
As seen on the theme demo, the shortcode displays all your posts in a masonry layout, configurable through the various settings it possess. Below is an image showing the available settings of a [posts] shortcode when added via the TinyMCE Shortcode editor.
- Included Categories
If you check any of the category on this option, only posts under those categories would be displayed. Leave everything unchecked to display all your posts.
- Included Tags
If you check any of the tag on this option, only posts under those tags would be displayed. Leave everything unchecked to display all your posts.
- Posts Per Page
This option determines how many posts you want to show on each page – on the posts shortcode, this the number of items to show between each click on the Load More button.
- Order By
This option determines the value used to order the posts.
This option determines if the posts should be ordered in an ascending/descending order.
- Image Size
This option determines the featured image size to be displayed for each post. It could take the original image aspect ratio, a square image or an image with 4:3 aspect ratio.
This option determines the meta text to display above each post title. It could either show the post date, or the post categories.