Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Simple Shortcode Calendar

Lets you create a monthly calendar by entering a shortcode. Calendar is output as an HTML table. You can also highlight certain dates.

How do I add the calendar to my post/page?

To insert the current month, simply enter the following shortcode where you want the calendar to appear:


Please note that this calendar will change as months go by.

How do I choose a custom month?

Simply include values for year and month parameters, e.g.,

[calendar year="1945" month="5"]

This will output the calendar for May 1945. Years have to be entered using four digits, i.e. typing just "45" won't work. The allowed values for months are numbers from 1 to 12 (without leading zeros).

How do I get localized names for months and days?

Since PHP's setlocale() function isn't always a reliable method with self-hosted WordPress sites, localized names have to be manually entered for each instance of the shortcode. For example, if you wish to output a calendar in Spanish, you'd have to enter the following:

[calendar day_names="Dom,Lun,Mar,Mié,Jeu,Vie,Sáb" month_names="Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agosto,Septiembre,Octubre,Noviembre,Diciembre"]

Please note that you have to fill in the names for all seven days if you choose to use the day_names parameter. Analogously, the month_names parameter requires all twelwe month names to work, regardless of the fact that you might want to display only one of them. Values for both parameters have to be entered in a comma-separated sequence, without spaces.

Can I change the first day of the week in my calendar?

Yes, you can choose between Monday (default), Sunday or Saturday. Just use the parameter week_start. The allowed values are: "Sun", "Sunday", "Sat", "Saturday", case insensitive.

How do I highlight certain dates?

This can be done by using the dates parameter, like this:

[calendar year="1945" month="5" dates="8,9"]

This will output the calendar for May 1945, with 8th and 9th day highlighted. Values for dates parameter have to be entered in a comma-separated sequence, without spaces or leading zeros.

Please note that the dates in the calendar will only be highlighted if you add an appropriate CSS rule to your theme's stylesheet, which brings us to the next question.

My calendar looks plain, are there any display presets to choose from?

No. The shortcode outputs an unformatted table without any styles applied. To minimize the HTML output and maximize the control over the appearance we've decided to keep it simple. This is how the source of the calendar from the last example looks like:

<table cellpadding="0" cellspacing="0" class="calendar">
            <td colspan="7">May 1945.</td>
            <td> </td>
            <td class="highlight">8</td>
            <td class="highlight">9</td>
            <td> </td>
            <td> </td>
            <td> </td>

Requires: 2.5 or higher
Compatible up to: 3.7.17
Last Updated: 3 years ago
Active Installs: 200+


4.5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.