DayOfWeek
This plugin provides an easy, lightweight way to show different content based on the day of the week. Can be used as a Gutenberg block, widget, or shortcode in your posts or pages. Features: (NEW) Gutenberg block support – Add Day of Week content directly in the block editor with visual controls (NEW) Modern, redesigned admin interface with attractive gradient styling and improved usability Additional nested shortcode option to allow full filtering including [embed] codes (and others) Allows a day to be shown all the time by adding day= to shortcode ( [showday day=”mon”] ) Tomorrow and Yesterday now added as a day option to show coming up or just missed!! Can now show the whole week, weekend or weekdays as an option. Now includes the ability to include shortcodes from other plugins. Most requested featured is easy to use Shows content based on each day of the week. Days can be left empty too. Can be used in your Posts or Pages Can be used as a Widget Fully compatible with both Gutenberg and Classic Editor Please send me your feedback here for any new features you want to see in next version of this plugin.I will be happy to receive feedback. Pro Version A Pro version is now available and offers plenty more features. Multiple entries – You are no longer limited to just one entry for different days Can use a post or page for each day (and can mix and match for the week) Premium Support – Will receive higher priority response than this free version. More details and you can purchase the pro plugin can be found here.. 2.0.0 Added Gutenberg block support – Easily add Day of Week content in the block editor without using shortcodes Completely redesigned admin interface with modern, attractive styling featuring gradient themes 1.8.1 (CRITICAL) Fixed a bug that was causing the plugin to fail and mess up any page in use. This has been fixed and tested. You may need to re-enter your timezone again. Sorry for the inconvenience. 1.8.0 Added the ability to show the whole week, weekend or weekdays as an option. Cleaned up code and improve accessibility. 1.7.1 Code cleanup and instruction readability improvements. 1.7.0 Allows Editor role to use this plugin. 1.6.0 Changes in User Interface to prepare for future upgrades. Added tomorrow and yesterday as an option for showing next day content. 1.4.2 Small bugfix in widget code 1.4.1 Bug fix for showing as a widget. New filter option for [embed] and nested shortcodes. See 1.4.0 details 1.4.0 Added ‘full filter’ to nested shortcode options to allow other tags such as [embed] to be shown Bug fixes on some variable initialization. Changed nested shortcode options to drop down menu, none, allow shortcodes & full filtering. 1.3.0 Added day to shortcode to allow a specific day to be shown all the time. 1.2.0 Allow Nested Shortcodes. Yeah. To allow nested shortcodes, please check the “Use Nested Shortcodes”. This is experimental but works so far. 1.1.4 TimeZone fix – Use alternative method of setting local timezone to comply with WordPress Date/Time in 5.3 Tested for WordPress 5.3 1.1.2 Bugfix – Resolves a PHP7.2 warning appearing. Corrected proper formatting for shortcode call. Tested – Tested in Gutenberg editor. 1.1.1 Bugfix for Wednesday 1.1.0 Added Widget Support 1.0.1 Bugfix. Widget support coming soon too. 1.0 First stable version released. 2.0.0 Added Gutenberg block support – Easily add Day of Week content in the block editor without using shortcodes Completely redesigned admin interface with modern, attractive styling featuring gradient themes 1.8.1 (CRITICAL) Fixed a bug that was causing the plugin to fail and mess up any page in use. This has been fixed and tested. You may need to re-enter your timezone again. Sorry for the inconvenience. 1.8.0 Added the ability to show the whole week, weekend or weekdays as an option. Cleaned up code and improve accessibility. 1.7.1 Code cleanup and instruction readability improvements. 1.7.0 Allows Editor role to use this plugin. 1.6.0 Changes in User Interface to prepare for future upgrades. Added tomorrow as an option for showing next day content. 1.4.2 Small bugfix in widget code 1.4.1 Bug fix for showing as a widget. 1.4.0 We have added the ability to pass [embed] tags and changed the way nested shortcodes were handled. Plugin is now under our sister company, Peachy Software’s umbrella. Bug fixes (including some variable initialization. 1.3.0 We have added the ability to show a specific day all the time. Useful for restaurant specials and many other ideas too. 1.2.0 We have added the ability to handle nested shortcodes. If you want to use a form or another plugins shortcode, the option is there now. 1.1.4 Compliance with WordPress 5.3 recommendation on timezone usage to avoid WordPress Core issues. 1.0 First stable version released.
Top keywords
- day15×1.75%
- added13×1.52%
- shortcodes10×1.17%
- nested9×1.05%
- option9×1.05%
- week9×1.05%
- shortcode8×0.93%
- widget8×0.93%
- block7×0.82%
- content7×0.82%
- editor7×0.82%
- ability6×0.70%
Draft List
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… Both widgets and shortcodes are available for you to show off your up-coming content Output is highly configurable – create your own look by using a template, identify scheduled posts with an icon, sequence the results in various ways and even narrow down the results to a specific timeframe Click on any of the drafts posts listed to edit them A meta box in the editor screen allows you to omit individual posts from any list outputs Tested up to PHP 8.2 Fully complies with WordPress coding standards Compliant with the stronger WordPress VIP coding standards, as well as compatibility with their platform Community plugin – visit the Github page to get involved with the latest code development, request enhancements and report issues Iconography is courtesy of the very talented Janki Rathod. Shortcode Parameters The following shortcode parameters are valid… cache= : How long to cache the output for, in hours. Defaults to half an hour. Set to No to not cache at all. Whenever you save a post any cache will be cleared to ensure that any lists are updated. date= : The format of any dates output. This uses the PHP date formatting system – read here for the formatting codes. Defaults to F j, Y, g:i a. folder= : The scheduled icon will be, by default, the one in the plugin folder named scheduled.png. However, use this parameter to specify a folder within your theme that you’d prefer the icon to be fetched from. limit= : The maximum number of draft items to display. The default is 0, which is unlimited. order= : This is the sequence that you’d like to order the results in. It consists of 2 codes – the first is either 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. pending= : True or false, where to include pending posts in the result. By default, pending posts will not be included. scheduled= : True or false, where to include scheduled posts in the result. By default, scheduled posts will be included. template= : This is the template which formats the output. See the section below on * *Templates** for further information. type= : This allows you to limit the results to either post or page. The default is both. words= : The minimum number of words that must be present in the draft for it to be included. Defaults to 0. 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. created= : his reflects how long ago the post/page must have been created for it to be listed. For example 6 months would only list drafts that were created in the last 6 months. modified= : This reflects how long ago the post/page must have been modified last for it to be listed. For example 6 months would only list drafts that have been modified in the last 6 months. Templates 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… {{ul}} – Specifies this is an un-ordered list (i.e. bullet point output). This MUST be specified at the beginning of the template if it is to be used. {{ol}} – Specifies this is an ordered list (i.e. number output). This MUST be specified at the beginning of the template if it is to be used. {{icon}} – This is the icon that indicates a scheduled post. {{draft}} – This is the post detail and is the only REQUIRED tag. {{author}} – This is the name of the post author. {{author+link}} – This is the name of the post author with, where available, a link to their URL. {{words}} – The number of words in the draft post. {{chars}} – The number of characters (exc. spaces) in the post. {{chars+space}} – The number of characters (inc. spaces) in the post. {{created}} – The date/time the post was created. {{modified}} – The date/time the post was last modified. {{category}} – Shows the first category assigned to the post. {{categories}} – Shows all categories assigned to the post, comma separated. 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. Omitting Posts/Pages from Results If you wish to omit a page or post from the list then you can do this in 3 ways… By giving the post a title beginning with an exclamation mark. You can then remove this before publishing the post. The post and page editor has a meta box, where you can select to hide the page/post. You can add a custom field to a page/post with a name of ‘draft_hide’ and a value of ‘Yes’ Edit Link 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. Using a Widget 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.