BCD Upcoming Posts

Description

Upcoming Posts provides a widget to display posts scheduled to be published.

Download

BCD Upcoming Posts

Features

  • Control number of posts to be displayed
  • Pick posts at random to be displayed
  • Display post titles as a link or plain text
  • Display drafts along with scheduled posts
  • Display drafts instead of scheduled posts

Screenshots

Configuration…

In use with no hyperlinks…

In use with hyperlinks…

Shortcodes

[bcdupcoming]

Attributes
numposts number specifying how many posts should be displayed. Omit to include all upcoming posts.
sortorder determines the sort order of the list. The sorting is performed on the post date. Valid values:

  • asc – display in ascending order
  • desc – display in descending order
  • rand – display in random order

If not specified then sortorder defaults to asc.

showmore displays the post’s excerpt or text leading up to the *more* tag. Valid values:

  • yes – displays the excerpt
  • no – does not display the excerpt

If not specified the excerpt will be displayed.

showlink displays the post’s title as a hyperlink or plain text. Valid values:

  • yes – displays the title as a hyperlink
  • no – displays the title as plain text

If not specified the title is displayed as plain text.

includedrafts includes drafts along with scheduled posts. Valid values:

  • yes – displays drafts along with scheduled posts
  • no – hides drafts so only scheduled posts are shown

If not specified drafts will not be shown.

draftsonly hides scheduled posts and displays only drafts. Only applies if includedrafts is omitted or set to yes. Valid values:

  • yes – displays only drafts
  • no – inlcudes drafts and scheduled posts

If not specified drafts and scheduled posts will be shown.

Usage

The following examples illustrate using the [bcdupcoming] shortcode to display upcoming posts. The attributes can be supplied in any order and must be separated by a space.

Display all upcoming posts.
[bcdupcoming]

Display only 5 upcoming posts
[bcdupcoming numposts=5]

Display upcoming posts in descending order
[bcdupcoming sortorder=desc]

Display the posts without showing the excerpts
[bcdupcoming showmore=no]

Display five posts at random
[bcdupcoming numposts=5 sortorder=rand]

Display five posts at random without excerpts
[bcdupcoming numposts=5 sortorder=rand showmore=no]

Display titles as plain text
[bcdupcoming showlink=no]

Display titles as a link
[bcdupcoming showlink=yes]

Display drafts along with scheduled posts
[bcdupcoming includedrafts=yes]

Display only drafts
[bcdupcoming onlydrafts=yes]

5 comments on “BCD Upcoming Posts
  1. robhortn says:

    Nice work sir! I dig it!

  2. jordipadro says:

    Hi! Good work!
    I wonder if it would be possible to sort the entries descendently, I’m using the pluging to show a schedule of a cultural NGO center but appears first the newest activities and I would like that appears firstly the olders. How can I do it?
    Thanks a lot!

Leave a Reply

Want to help support my new plugin writing addiction? Maybe help support my daughter's 8th grade trip to Washington D.C.? Click the donate button below!