WordPress.org

Ready to get started?Download WordPress

Plugin Directory

DeMomentSomTres Night and Day

Provides the shortcode dms3nad allowing to show contents only during an specific time frame specified in the shortcode paramenters.

A customer of DeMomentSomTres required us to show a picture of its building depending of the moment of the day in its web.

We build that shortcode that helps on doing this task.

You only have to use [dms3nad start="hh:mm" end="hh:mm"]Content to show[/dms3nad].

For instance to show the sentence "night" from midnight until 7:00 and "day" the rest of the day, the code should look like:

[dms3nad start="00:00" end="07:00"]Night[/dms3nad]
[dms3nad start="07:00" end="23:59"]Day[/dms3nad]

Note: times are based on server time

Tags:

Requires: 3.5 or higher
Compatible up to: 3.9.2
Last Updated: 2014-5-20
Downloads: 174

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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