Molongui Authorship

  1. Molongui
  2. >
  3. Docs
  4. >
  5. Molongui Authorship
  6. >
  7. Shortcodes
  8. >
  9. [molongui_author_posts]

[molongui_author_posts]

Applies only to the Premium version of the plugin, release 2.0.10 or higher.
Get premium version

This shortcode allows you to display a list showing (all the) posts from any given author anywhere you want.

It can be used anywhere within WordPress where shortcodes are supported. For most users, this will primarily be within the content of a WordPress post or page or the sidebar.

That posts list can be customized making use of the optional attributes this shortcode can take.

Example

A trivial shortcode to display a Molongui Posts List looks like this:

Editor input

[molongui_author_posts]

Frontend output

That would display a flat posts list, showing the posts’ title as a link to them. Check the image below:

We are working to add more layouts for the posts list. Hopefully they will be available very soon.
Should you have any particular need or suggestion, please, let us know by opening a support ticket with us.
×

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.
Was this article helpful to you? Yes No

How can we help?