This shortcode is designed to be used on the homepage and outputs the newest posts overall or in a defined category.
Attributes include:
- author_id: The specific author’s posts to display. (optional; default: all authors; accepts: current, a numerical ID, or a user’s nicename/username)
- category_id: The single post category ID to display. (optional; default: shows all posts)
- count: The number of posts to display. (optional; default: shows 3 posts)
- post_type: The Custom Post Type to display. (optional; default: ‘post’)
- show: Show the post content or excerpt. (optional; default: excerpt)
- show_avatar: If no post thumbnail is set, show the author avatar. (optional; default is “yes”)
- subtitle: the text for a subheading displayed before the posts output.
- title: The text for a heading displayed before the posts output.
Last updated on March 12, 2025
Was this article helpful?
YesNo