Shortcode - UCF/UCF-Pegasus-List-Shortcode GitHub Wiki

This plugin includes the [ucf-pegasus-list] shortcode, described below, which you can add to your post content to display issues of Pegasus Magazine dynamically.

[ucf-pegasus-list]

Displays a list of recent issues of Pegasus Magazine. The default layout for each list item includes a link to the issue's cover story.

Customize what gets shown when no issues can be retrieved by including custom content within the shortcode's opening and closing tags.

Attributes

Name Description Default
layout The layout to display the issue list with. default
title Text to display in a heading above the list. Set this to a blank value to omit the heading. UCF Pegasus Issues
feed_url Allows the base URL for the Pegasus issue feed to be overidden. (Uses "Pegasus API URL" plugin setting)
limit The number of issues to display. (Uses "Issue Display Limit" plugin setting)
offset The number of issues to skip in the feed. For example, set to 1 to skip the first issue. 0

Examples

  • Basic usage

    [ucf-pegasus-list]No issues found.[/ucf-pegasus-list]
  • Display the latest issue

    [ucf-pegasus-list limit="1"]No issue found.[/ucf-pegasus-list]
  • Display the 2nd and 3rd most recent issues only

    [ucf-pegasus-list limit="2" offset="1"]No issues found.[/ucf-pegasus-list]
  • Omit the heading above the list

    [ucf-pegasus-list title=""]No issues found.[/ucf-pegasus-list]
⚠️ **GitHub.com Fallback** ⚠️