The recent posts shortcode allows you to show a number of recent posts and supports featured images.
Shortcode Format
[ubermenu-recent-posts num="3" img="on" excerpt="on" category="cat_slug"]
Recent Posts Shortcode attributes
| num | Sets the number of posts to display. |
| img | Turn featured image display on or off. |
| excerpt | Turn the post excerpt on or off. |
| category | Set the category from which to pull posts. Use the category slug or ID. |
| offset | Post offset – number of posts to pass over |
| img_width | Width of the images (since 2.3.2.0) |
| img_height | Height of the images (since 2.3.2.0) |
