Descripció
Originally I used the “Countdown Timer” plugin written by Andrew Ferguson to accomplish what I wanted,
however, his implementation to output in just days also outputted extraneous text that I was
not interested in. On top of that, the actual count algorithm was flawed. Rather than hack
this plugin to pieces to get the output I needed, I decided to just roll my own.
This is a bare bones, no-frills plugin since this is my first attempt at it. This means no
fancy options or configuration screens.
To use the plugin, simply install it and then use the following shortcode to output the number
of days until a given date in its place:
[days_until date=”SPECIFIC DATE”]
Where “SPECIFIC DATE” can be any text that that PHP’s strtotime function can understand.
Instal·lació
This section describes how to install the plugin and get it working.
e.g.
- Upload
daysuntil.php
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
[days_until date="SPECIFIC DATE"]
in your content
PMF
None yet.
Ressenyes
No hi ha ressenyes per a aquesta extensió.
Col·laboradors i desenvolupadors
«Days Until» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.
Col·laboradorsTraduïu «Days Until» a la vostra llengua.
Interessats en el desenvolupament?
Navegueu pel codi, baixeu-vos el repositori SVN, o subscriviu-vos al registre de desenvolupament per fisl de subscripció RSS.
Registre de canvis
1.1
- Just now realized that the instructions in the readme were wrong (missing the date attribute), functionally nothing else changed.
1.0
- The genesis