Would your weblog profit from eradicating the dates of the posts? That’s the query I requested on the publish “Ought to We Take away the Timestamp?”. The suggestions from the readers was divided. Some folks consider that the timestamp is critical, whereas others suppose that eradicating the date from posts might have benefits, like growing the quantity feedback and linkbacks for the older content material .
It’s most likely a subjective matter. Eradicating the date will work for some blogs, and never for others. No matter that alternative, lots of people will not be comfy with modifying the WordPress theme recordsdata to take away the timestamp. Secondly, the uncooked modifying of such recordsdata don’t present flexibility. You may both hold the dates on all of the posts or eliminated all of them, there is no such thing as a in between.
With that drawback in thoughts Stephen determined to code a plugin, known as Date Exclusion.
Date Exclusion Plugin
This WordPress plugin provides the person full management over the place and when the timestamp will likely be displayed. You may exclude them from all posts by default or solely on posts older than a number of weeks or months. You may also exclude or embody dates on a post-by-post degree by way of WordPress’ customized discipline characteristic.
Set up
- Obtain and unzip the plugin file
- Add the date-exclusion.php file to your /wp-content/plugins/ listing
- Log into your WordPress management panel, click on the “Plugins” tab, and click on “Activate” subsequent to the Date Exclusion plugin
Configuration
To be able to configure the plugin on your wants you’ll have to open the plugin file (date-exclusion.php). You are able to do this on the Plugin Editor contained in the WordPress management panel.
To exclude date info from all posts by default, set $exclude_date on line 30 equal to ‘sure’. This may be overridden on a post-by-post foundation by setting “exclude_date” as a customized discipline with a worth of “no”.
To set a default time frame for each publish after which date info ought to not be displayed, set $date_expires on line 33 to the variety of days to attend (e.g., 14 for 2 weeks). This may be overridden on a post-by-post foundation by setting “date_expires” as a customized discipline with a distinct worth (or 0 to deactivate).
To exclude date info from a particular publish, set “exclude_date” as a customized discipline with a worth of “sure”.
To make the date of a particular publish not show after a sure time frame, set “date_expires” as a customized discipline with a worth equal to the variety of days you need the date to show.
Model Historical past
Nonetheless on the preliminary launch (1.0). Please depart a remark should you encounter any difficulties.