Title: Simple Shortcode Calendar
Author: kamontander
Published: <strong>Bélú 1, 2013</strong>
Last modified: Bélú 1, 2013

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/simple-shortcode-calendar/assets/banner-772x250.jpg?rev=797439)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/simple-shortcode-calendar_f5f5f5.svg)

# Simple Shortcode Calendar

 Láti ọwọ́ [kamontander](https://profiles.wordpress.org/kamontander/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/simple-shortcode-calendar.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/simple-shortcode-calendar/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/simple-shortcode-calendar/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/simple-shortcode-calendar/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/simple-shortcode-calendar/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/simple-shortcode-calendar/)

## Àpèjúwe

Simple Shortcode Calendar lets you add an HTML-table-based monthly calendar to your
posts and pages by entering a shortcode.

**Features**

 * Defaults to current month.
 * Choose any year+month combination.
 * Choose the first day of the week (Monday, Sunday or Saturday).
 * Enter custom names for months and days (for localization purposes).
 * Highlight important dates.

This plugin is based on a [tutorial for building a calendar using PHP, XHTML, and CSS](http://davidwalsh.name/php-calendar)
by David Walsh.

## Ìgbéwọlẹ̀

 1. Upload `simple-shortcode-calendar.zip` through Plugins->Add New, or extract and
    upload the directory `simple-shortcode-calendar` to the `/wp-content/plugins/` 
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Place the shortcode in a post or a page.

## FAQ

  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:

    ```
    [calendar]
    ```

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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’s `setlocale()` function isnÌtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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">
        <tbody>
            <tr>
                <td colspan="7">May 1945.</td>
            </tr>
            <tr>
                <th>Mon</th>
                <th>Tue</th>
                <th>Wed</th>
                <th>Thu</th>
                <th>Fri</th>
                <th>Sat</th>
                <th>Sun</th>
            </tr>
            <tr>
                <td> </td>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>5</td>
                <td>6</td>
            </tr>
            <tr>
                <td>7</td>
                <td class="highlight">8</td>
                <td class="highlight">9</td>
                <td>10</td>
                <td>11</td>
                <td>12</td>
                <td>13</td>
            </tr>
            <tr>
                <td>14</td>
                <td>15</td>
                <td>16</td>
                <td>17</td>
                <td>18</td>
                <td>19</td>
                <td>20</td>
            </tr>
            <tr>
                <td>21</td>
                <td>22</td>
                <td>23</td>
                <td>24</td>
                <td>25</td>
                <td>26</td>
                <td>27</td>
            </tr>
            <tr>
                <td>28</td>
                <td>29</td>
                <td>30</td>
                <td>31</td>
                <td> </td>
                <td> </td>
                <td> </td>
            </tr>
        </tbody>
    </table>
    ```

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/5d6a5e24141555a16e3507ded52622c09d4ffd09ac0a87fa64c85fd0002cc5a7?
s=60&d=retro&r=g)

### 󠀁[Poor](https://wordpress.org/support/topic/poor-61/)󠁿

 [Josh Fisher](https://profiles.wordpress.org/mrjoshfisher/) Ọwẹ́wẹ̀ 3, 2016

Once installed you have no settings, no options, and you donÌtumọ̀ Yorùbá: ’t even
get a message telling you what the shortcode is, could be much much better.

 [ Ka gbogbo àwọn àgbéyẹ̀wò 4 ](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Simple Shortcode Calendar” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí
ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

 *   [ kamontander ](https://profiles.wordpress.org/kamontander/)
 *   [ David Walsh ](https://profiles.wordpress.org/davidwalsh83/)

[Túmọ̀ “Simple Shortcode Calendar” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/simple-shortcode-calendar)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/simple-shortcode-calendar/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/simple-shortcode-calendar/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/simple-shortcode-calendar/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/simple-shortcode-calendar/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0

 * Initial release.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 12 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **20+**
 *  Ẹ̀yà WordPress ** 2.5 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.7.41**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/simple-shortcode-calendar/)
 * Àwọn àmì
 * [calendar](https://yor.wordpress.org/plugins/tags/calendar/)[dates](https://yor.wordpress.org/plugins/tags/dates/)
   [Highlight](https://yor.wordpress.org/plugins/tags/highlight/)[shortcode](https://yor.wordpress.org/plugins/tags/shortcode/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/simple-shortcode-calendar/advanced/)

## Àwọn ìbò

 4.5 lára àwọn ìràwọ̀ 5.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-shortcode-calendar/reviews/)

## Àwọn Olùkópa

 *   [ kamontander ](https://profiles.wordpress.org/kamontander/)
 *   [ David Walsh ](https://profiles.wordpress.org/davidwalsh83/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/simple-shortcode-calendar/)