WordPress plugin to manage and promote your unpublished content.
If you’re upgrading from a previous release of Draft List (i.e. pre version 2.5) please check out the FAQ – a number of changes have been made in this release that you need to be aware of
Draft List allows you to both manage your draft and scheduled posts more easily but also to promote them by showing them on your site via shortcode or widget – use it to show your visitors what’s “coming soon” or as a great SEO tool.
How easy is it display a list of draft posts? Here’s an example of how you could use it in a post or page…
[drafts limit=5 type=post order=ma scheduled=no template='{{ul}}{{[draft}} {{icon}}']
This would display a list of up to 5 draft posts in ascending modified date sequence, with an icon displayed to the right of each if the draft is scheduled.
Key features include…
Iconography is courtesy of the very talented Janki Rathod.
The following shortcode parameters are valid…
No
to not cache at all. Whenever you save a post any cache will be cleared to ensure that any lists are updated.F j, Y, g:i a
.scheduled.png
. However, use this parameter to specify a folder within your theme that you’d prefer the icon to be fetched from.t
, m
or c
to represent the title, modified date or created date and the second is a
or d
for ascending or descending. Therefore order=td
will display the results in descending title sequence. The default is descending modified date.post
or page
. The default is both.To restrict the posts to a particular timeframe you can use the following 2 parameters. You simply state, in words, how long ago the posts must be dated for e.g. “2 days”, “3 months”, etc.
6 months
would only list drafts that were created in the last 6 months.6 months
would only list drafts that have been modified in the last 6 months.The template parameter allows you to format the output by allowing you to specify how each line of output will display. A number of tags can be added, and you can mix these with HTML. The available tags are as follows…
If {{ul}} or {{ol}} are specified then all the appropriate list tags will be added to the output. If neither are used then it’s assumed that line output will be controlled by yourself.
If you wish to omit a page or post from the list then you can do this in 3 ways…
If the current user can edit the draft item being listed then it will be linked to the appropriate edit page. The user then simply needs to click on the draft item to edit it.
There are separate permissions for post and page editing, so an editor with just one permission may find that they can only edit some of the draft items.
Drafts that don’t have a title will not be shown on the list UNLESS the current user has edit privileges for the draft – in this case a title of [No Title] will be shown.
Sidebar widgets can be easily added. In Administration simply click on the Widgets
option under the Appearance
menu. Draft Posts
will be one of the listed widgets. Drag it to the appropriate sidebar on the right hand side and then choose your options.
Save the result and that’s it! You can use unlimited widgets, so you can add different lists to different sidebars.
This plugin can be found and installed via the Plugin menu within WP Admin (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually…
wp-content/plugins/
directory, either from WP Admin (Plugins -> Add New), your favorite FTP client or any other file managerFrom version 2.5, 2 features have been removed…
I use semantic versioning, with the first release being 1.0.
pending
and scheduled
parameters, where one accepting boolean and yes/no and, well, the other didn’tundefined constant
warning-adl
prefix from file nameswp_plugin_url
with the nicerer plugins_url
attribute_escape
with esc_attr
in the widget codecategory
and categories
template tags