When & How to set an expire date for your WordPress widgets
Widgets are the easiest way to add custom items and features to your Wordpress website.
Most of them are are highly customizable, and they will allow you to easily insert various useful functions into your Wordpress sidebar or any other widget-ready area (post, page, footer, etc).
Mote than that, an efficient, smart widget-management will help you to improve the user engagement and to create a truly user friendly website. It's really not rocket science and not so long ago I've already published a short tutorial on this topic. In case that you haven't seen it yet, here it is again:
The above tutorial focuses on a simple method that will allow you to dinamically display your widgets depending on the content of your page, the current status of your visitors, etc. The point: instead of transforming your sidebar, footer, etc into a boring widget-repository where everybody will see the very same features and information on daily basis, you should implement a conditional display logic that will allow you to show/hide given widgets on specific pages.
It's a simple, yet very efficient method. A method that can can be further developed by adding an expire date for your widgets!
Why would you do that?
Well, there are many common scenarios ... For example, you may want to ...
- run a promotional campaign that expires at a given time
- display seasonal information during various holidays
- hide certain ads when their time slot is over
So I've decided to create a short tutorial where I will show you how easy is to add an expire date to your Wordpress widgets.
Here it is: