Displaying a list of posts by author

This article applies only to the Premium version of the plugin, release 2.0.10 or higher.
Get premium version

Would you like to display a list of all the posts by any given author of your blog? May be just guest authors? Molongui Authorship Premium allows you to display a list of posts anywhere you like thanks to the use of shortcodes.

Using the trivial shortcode, a flat posts list will be rendered showing the name of the posts as a link to their single page. Check the shortcode and the output below:

Editor input

[molongui_author_posts]

Frontend output

Attributes

Check out below all the available attributes you can use to fully customize the posts list:

authoroptional
Author ID. If none given, assigned main author to the current post is taken.
Accepts User or guest author ID.
Available since version 2.0.10.
guestoptional
Whether the author of the posts is a guest author.
Accepts “yes” or “no”.
Defaults to no.
Available since version 2.0.10.
posts_typesrequired
Post type to list.
Accepts “post”, “page”, “all”, “selected” and “related”.
Available since version 2.0.10.
exclude_postsoptional
Posts IDs to exclude from being listed.
Accepts Comma separated post IDs.
Available since version 2.0.10.
list_classoptional
CSS class to add to the <div> containing the list.
Accepts CSS class names separated by spaces.
Available since version 2.0.10.
link_coloroptional
Post title color.
Accepts Accepts CSS color values.
Available since version 2.0.10.
link_decorationoptional
Post title text decoration.
Accepts CSS text-decoration property values.
Available since version 2.0.10.
meta_keyoptional
You can filter the posts retrieved by this shortcode by specifing any meta_key name existing on your installation.
Available since version 2.0.15.
meta_valueoptional
The value the specified meta_key should have in order to retrieve the post. This value is mandatory if “meta_key” attribute is being used.
Available since version 2.0.15.
Did this article answer your question?