Custom Date Range Calendar featured image

[WP Plugin]Custom Date Range Calendar

A new request from an anonymous person:

i have a blog site. for every blog post i want to set a date period like 1-15 December. or 10-11 November. on my website there is a calender for sidebar. when people click on 13th december or 11th November people will be able to see that post. is it possible? now in which date i am posting people can see if they click on that day only. but i dont want this.

can anyone help?

https://www.facebook.com/share/p/1DxxduZCVw

Though I’m not sure why he needs that function (I think it’s too complicated to set date period each time), I’ve made a simple plugin to realize the function. Plugin download link at the end of this article.


Demo

requirement

Firstly, we need to install the plugin.

install the plugin

Don’t forget to add it to the sidebar.

add it to the sidebar

Based on my understanding of the OP’s requirement, I published a post and set its publishing date as Dec. 2, 2023

published a post

You’ll see a “Post Date Range” area where you can set what period the post belongs to. I set it to Dec.1,2023 to Dec.15, 2023

"Post Date Range" area

So if anyone selects the date within Dec.1, 2023 and Dec.15, 2023, this post should appear.

Let’s go to the webpage to see if it works.

select date range

Those set date rage are marked as blue on the calendar. Click on any date, and WordPress will give you all posts within that date range and also a notice:

Final Result


Download

Plugin Github page: https://github.com/wputopia/custom-date-range-calendar-plugin

Features

  • Set custom date ranges for posts (e.g., events spanning multiple days)
  • Interactive AJAX-powered calendar widget
  • Month/Year dropdown selectors for quick navigation
  • Highlights dates with associated posts
  • Shows all posts within a date range when clicking any date in that range
  • Maintains calendar state during navigation
  • Responsive design for all screen sizes
  • Clear visual indicators for dates with posts
  • Loading states for better user experience

Installation

  1. Download the plugin files from “realeases”
  2. Install the zip file as other WordPress plugins

Leave a Reply

Your email address will not be published. Required fields are marked *