Skip to content

billerickson/dps-coauthor-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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.

About

Display Posts Shortcode, Co-Authors Plus Add-on

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages