Reputation: 2507
Wordpress default calendar in widget displays the post published on that particular day if we click a date.I need the code which performing this action.
Upvotes: 2
Views: 1773
Reputation: 6662
it is in wp-includes/default-widgets.php
in the class WP_Widget_Calendar
In there you will find a call to the get_calendar
function. get_calendar
itself is in: wp-includes/general-template.php
It should be around line 1074.
Just putting get_calendar()
anywhere will generate the calendar with click-able posts just as the widget does. Remember there have to be posts to be click-able.
Tested on multiple sites.
Upvotes: 1