Display Posts Shortcode, Co-Authors Plus Add-on
PHP
Latest commit 38d5753 Aug 23, 2016 @billerickson committed on GitHub remove notice about unreleased version
Permalink
Failed to load latest commit information.
README.md remove notice about unreleased version Aug 23, 2016
dps-coauthor-addon.php

README.md

Co-Authors Plus Extension for Display Posts Shortcode

If you have both Display Posts Shortcode and Co-Authors Plus installed, use the following shortcode to display a list of posts and the authors associated with each post:

[display-posts include_author="true"]

This can be used in conjunction with any other query arguments for Display Posts Shortcode (full list here).

Customization

You need to have version 2.7.0 or higher of Display Posts Shortcode to use these parameters.

The following parameters can be added to the shortcode to customize the output of the author list

  • coauthor_between - Delimiter that should appear between the co-authors. Default: ,
  • coauthor_between_last - Delimiter that should appear between the last two co-authors. Default: and
  • coauthor_before - What should appear before the presentation of co-authors. Default: by
  • coauthor_after - What should appear after the presentation of co-authors. Default: (empty)
  • coauthor_function - Change which Co-Author Plus function is used. Default: coauthor Available Options:
    • coauthor - Outputs the co-authors display names, without links to their posts
    • coauthors_posts_links - Outputs the co-authors display names, with links to their posts.
    • coauthors_links - Outputs the co-authors display names, with links to their websites

Installation

Download the plugin here, then upload it to your website. Plugins > Add New, then click "Upload Plugin" at the top of the page.