PHP 1 min de lecture · 129 mots

Near Future Posts plugin

For an external development I needed to be able to display future posts but not all future posts. I started with the future posts plugin of Michael Moncur but it doesn’t fit to what I really needed.

The posts to be displayed should have been maximum 20 days in the future…

So the plugin is now able to display the future posts of ‘x’ days (defined via an simple administration screen).


To have that I wrote « nearfutureposts plugin.

To install the plugin :

  • copy the nearfutureposts.phps file in the wp-content/plugin directory (don’t forget to rename it as ‘nearfutureposts.php’).
  • Activate the plugin.
  • define the number of days in future to display via the menu « Option/NearFuture » (default value sets to 30 days)

Une remarque, un retour ?

Cet article est vivant — corrections, contre-arguments et retours de production sont les bienvenus. Trois canaux, choisissez celui qui vous convient.