How to Set an Expire Date For Widgets in WordPress

Widgets are one of the best ways to add custom items into your WordPress sidebars or any widget-ready areas. You can customize how it is displayed, hide it in a post, or display it in specific post or pages.

Sometimes, your widgets need only to show and expires at specific time. Like for example when you need to set up a seasonal campaign for December and you want to end it by January. By  setting up an expiration for your widgets, you don’t need to worry about your widget showing up when the campaign is over. This is also useful for hiding ads when the time slot is over.


In this articles, w’e’ll show you how to set up an expiration data for your widgets:

How to Add WordPress Widgets in Your Blog’s Post and Page

Widgets are an easy way to add or remove items to your WordPress blog or website. However, most themes don’t have enough space to add plenty of widgets. So, if you saw a beautiful theme but lacks the needed widgets for your site, you simply abandon all hope and find a new WordPress theme.

Do you know that you can add new widgets in your post and page content by just following this guide. You don’t need to worry if your theme can occupy the widgets you have because you can add new ones all by yourself.

Here is a quick guide on how to do that: