Title: Time Lord
Author: Giorgos Sarigiannidis
Published: <strong>14 avril 2015</strong>
Last modified: 5 novembre 2023

---

Recherche d’extensions

![](https://ps.w.org/time-lord/assets/banner-772x250.jpg?rev=2841202)

Cette extension **n’a pas été testée avec les3 dernières versions majeures de WordPress**.
Elle pourrait ne plus être maintenue ou supportée et peut présenter des erreurs 
de compatibilité quand elle est utilisée avec des versions récentes de WordPress.

![](https://ps.w.org/time-lord/assets/icon-256x256.jpg?rev=2841202)

# Time Lord

 Par [Giorgos Sarigiannidis](https://profiles.wordpress.org/gsarig/)

[Télécharger](https://downloads.wordpress.org/plugin/time-lord.1.2.zip)

 * [Détails](https://fr-ca.wordpress.org/plugins/time-lord/#description)
 * [Avis](https://fr-ca.wordpress.org/plugins/time-lord/#reviews)
 *  [Installation](https://fr-ca.wordpress.org/plugins/time-lord/#installation)
 * [Développement](https://fr-ca.wordpress.org/plugins/time-lord/#developers)

 [Support](https://wordpress.org/support/plugin/time-lord/)

## Description

Time Lord is a plugin which allows you to schedule the publication of part of your
content on a set date. It can also calculate age based on a set year in the past
or the estimated time if the year is set in the future.

You can use it in posts, pages or any other content type via the `[timelord]` shordcode.
Here are some common examples, supposing that present day is on April 2015:

 * `[timelord from="2016-01"]SOME CONTENT[/timelord]` would output « SOME CONTENT»
   only when January 2016 comes.
 * `[timelord to="2016-01"]SOME CONTENT[/timelord]` would output « SOME CONTENT »
   until January 2016 and then it would remove it.
 * `[timelord from="2015-04-01" to="2016-04-01" every="1 day"]SOME CONTENT[/timelord]`
   would output « SOME CONTENT » every other day until April 2016.
 * `[timelord from="2015-04-01" to="2016-04-01" every="Monday"]SOME CONTENT[/timelord]`
   would output « SOME CONTENT » every Monday until April 2016.
 * `[timelord to="2014-01" del="yes"]SOME CONTENT[/timelord]` would output `<del
   >SOME CONTENT</del>` (check screenshot for an example of what the user would 
   actually see in the frontend).
 * `[timelord from="2015-01" to="2016-01"]SOME CONTENT[/timelord]` would output «
   SOME CONTENT » from January 2015 to January 2016.
 * `[timelord mode="hide" from="2015-01" to="2016-01"]SOME CONTENT[/timelord]` would
   output « SOME CONTENT » every other time except from January 2015 to January 
   2016.
 * `[timelord year="1980"]` would output « 35 ».
 * `[timelord year="1980" ordinal="yes"]` would output « 35th ».

[View the demo](http://demos.gsarigiannidis.gr/time-lord/)

#### Features

 * Allows you to show or hide content at a given timeframe.
 * Supports recurring display of the output at given intervals (e.g. every hour,
   every day, every month etc.).
 * Allows you to wrap your content in the `<del></del>` tag instead of removing 
   it when expires.
 * It can display an alternate message when the actual content is not supposed to
   be shown.
 * It can output the time remaining until the content will be up or down.
 * It can calculate age and even output it with an ordinal suffix.
 * You can use it anywhere a shortcode would go. On posts, pages, custom posts.
 * You can add as many shortcodes as you like in a single post.

## Captures d’écran

 * [[
 * An example of how Time Lord is used.

## Installation

 1. Upload the Time Lord plugin to your WordPress plugins directory and activate it.
 2. That’s it! There is no options page. Just go and start adding your shortcodes as
    described in the FAQ section.

## FAQ

### Which are the available parameters?

Shortcode parameters include the following:

 * **mode**. It is used to determine whether the wrapped content will be shown or
   hidden at the given timeframe. By default it is set to « show ». The other parameter
   you can give is « hide ».
 * **from**. The date your content should start appearing. It accepts time values
   of the form « YYYY-MM-DD hh:mm:ss » (for example: `[timelord from="2016-4-1 20:
   10:00"]SOME CONTENT[/timelord]` will show the text « SOME CONTENT » on April 
   1st of 2016 at 20:10). If you don’t care about so much specificity, you can omit
   values from right to left. For example, you could just add from= »2016-04″ if
   you want to show your content as soon as April 2016 comes.
 * **to**. Same as the « from » parameter, « to » allows you to hide content at 
   a specific time in the future. The same rules described at the « from » parameters
   apply here as well.
 * **every**. Output content recursively at specified intervals. It works best if
   a « from » and « to » dates are set. For example, `[timelord from="2015-04-01"
   to="2016-04-01" every="1 day"]SOME CONTENT[/timelord]` would output « SOME CONTENT»
   every other day until April 1st. This parameter can accept a date with relative
   parts like for example every= »12 hours », every= »2 days », every= »1 hour »
   etc. ([See examples](http://php.net/manual/en/datetime.formats.relative.php)).
   Also, you can use the day’s’ name to show content on a specific day of the week
   using, for example every= »Monday ». NOTE: the « every » parameter cannot be 
   combined with the other parameters that follow – it will just show or hide the
   content depending on the given interval.
 * **del**. Instead of just removing the content when it expires, this parameter
   wraps it in the `<del></del>` tag in order to mark it as « erased ». For example,`[
   timelord to="2016-4-1" del="yes"]SOME CONTENT[/timelord]` would output `<del>
   SOME CONTENT</del>` (check screenshot for an example of what the user would actually
   see in the frontend).
 * **message**. It displays some alternate content until the set date comes. It 
   accepts some basic HTML formatting.
 * **from_msg**. If this parameter is set and is not empty AND if the « from » parameter
   is set, it will show the remaining time until the publication (for example « 
   4 months »). If you add any text in there, it will add this text before the remaining
   time. For example, given that present is April 2015, `[timelord from="2016-04"
   from_msg="Content will be live in: "]SOME CONTENT[/timelord]` would output « 
   Content will be live in 12 months ».
 * **to_msg**. It have exactly the same function as the « from_msg », only this 
   time it calculated the end date (as long as the « to » parameter is set).
 * **year**. This is a standalone parameter, which means that if it is set, all 
   the previous get ignored. It is used to calculate age. For example, given that
   we are on 2015 `[timelord year="1980"]` will output « 35 ». If the year is set
   to the future, it will output the years remaining. for example, `[timelord year
   ="2020"]` would output « 5 ».
 * **ordinal**. This is the only parameter that can be used along with « year »,
   to add an ordinal suffix to the output. For example `[timelord year="1980" ordinal
   ="yes"]` would output « 35th ».

You can combine the parameters in many ways. For example, given that we are on April
2015, `[timelord from="2016-04" to="2017-04" message="Content not yet available."
from_msg="Time to be up: " to_msg="Will expire: "]SOME CONTENT. [/timelord]` would
output the following:

 * If we are on April 2015: « Content not yet available. Time to be up: 12 months»
 * On April 2016: « SOME CONTENT. Will expire: 2 years »

On the other hand `[timelord mode="hide" from="2016-04" to="2017-04"]SOME CONTENT[/
timelord]` would hide the content on the given timeframe and show it at the rest
of the time.

## Avis

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

### 󠀁[A Timeless Helper! Tested and found working under WP 4.7.4](https://wordpress.org/support/topic/a-timeless-helper-tested-and-found-working-under-wp-4-7-4/)󠁿

 [Gahapati](https://profiles.wordpress.org/gahapati/) 27 avril 2017

Thanks for this useful little helper! The only thing outdated about this plugin 
is the compatibility info in its Readme.

 [ Lire les 2 avis ](https://wordpress.org/support/plugin/time-lord/reviews/)

## Contributeurs & développeurs

« Time Lord » est un logiciel libre. Les personnes suivantes ont contribué à cette
extension.

Contributeurs

 *   [ Giorgos Sarigiannidis ](https://profiles.wordpress.org/gsarig/)

[Traduisez « Time Lord » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/time-lord)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/time-lord/), consulter
le [SVN dépôt](https://plugins.svn.wordpress.org/time-lord/), ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/time-lord/)
par [RSS](https://plugins.trac.wordpress.org/log/time-lord/?limit=100&mode=stop_on_copy&format=rss).

## Historique des changements

#### 1.2

 * NEW FEATURE: Show content based on the day of the week.

#### 1.1

 * NEW FEATURE: Show content recursively at user set intervals.
 * FIX: The plugin now takes into account the timezone set at the WordPress installation.

#### 1.0

 * First release!

## Méta

 *  Version **1.2**
 *  Last updated **il y a 2 années**
 *  Active installations **10+**
 *  WordPress version ** 4.0 ou plus **
 *  Tested up to **6.4.8**
 *  Language
 * [English (US)](https://wordpress.org/plugins/time-lord/)
 * Tags
 * [schedule](https://fr-ca.wordpress.org/plugins/tags/schedule/)[shortcode](https://fr-ca.wordpress.org/plugins/tags/shortcode/)
   [time](https://fr-ca.wordpress.org/plugins/tags/time/)
 *  [Vue avancée](https://fr-ca.wordpress.org/plugins/time-lord/advanced/)

## Notes

 5 out of 5 stars.

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

[Your review](https://wordpress.org/support/plugin/time-lord/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/time-lord/reviews/)

## Contributeurs

 *   [ Giorgos Sarigiannidis ](https://profiles.wordpress.org/gsarig/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/time-lord/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R68GJ2RBSVXGN)