🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Random Posts Within Date Range Widget icon
Peut-être abandonné Testé jusqu'à 3.0.5

Random Posts Within Date Range Widget

This plugin allows you to create a widget that will display the title/date/excerpt from random posts in a specified(or open-ended) date range. It can also be used outside of a widget to create custom loops of random…

Installations actives20+10+ niveaux
Téléchargements · 30D149▼ -9.1% vs prev. 30d
Évaluation—0 avis
Score de santé24/100En danger
Téléchargements de tous les temps10.5KDepuis juin 2010
Support résolu—Aucun fil de discussion récent
A besoin deWP 2.8.6Php tout
Téléchargements · 7j31• 0% semaine après semaine
Notre verdict

Envisager une alternative

Random Posts Within Date Range… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites and was last updated 16 years ago, and scores 24/100 on our health check.

  • Petite base d'utilisateurs (20+ installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 16 ans
  • Uniquement testé jusqu'à WordPress 3,0 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

369Sep 4Oct 18Dec 2
Hier5
Moyenne quotidienne (1 ans)4
Jour de pointe1210 Septembre 2026
12 Derniers mois1.5K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Random Posts Within Date Ra… stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
categories >100 10,000 Best categories plugins →
date >100 10,000 Meilleurs plugins de date →
des postes >100 10,000 Meilleurs plugins de publications →
fait au hasard >100 4,035 Meilleurs plugins aléatoires →
widget >100 10,000 Meilleurs plugins de widgets →

Adoption de version

Part de sites actifs par version.

  • 1.2100.0%

About Random Posts Within Date Range Widget

À partir du Lisezmoi officiel · v1.2

Description

This plugin allows you to create a widget that will display the title/date/excerpt from random posts in a specified(or open-ended) date range. It can also be used outside of a widget to create custom loops of random posts within a date range. The following can be specified:

  • Number of posts to display
  • Whether or not to show dates
  • Whether or not to show excerpts
  • Excerpt length (number of words)
  • Start date and End date of posts to randomize
  • Whether or not to always use current date as end. (Allows you to include new posts without editing settings every day)
  • Option to use relative time instead (To chose from random posts from last week, year, etc.)
  • Category to choose posts from. (Example: Random posts from sports category in the past week. This is the original reason I needed a plugin like this. Comes in handy for the newspaper site I run.)

Please contact me if you run into any issues, either via email (lupka31@gmail.com) or Twitter (http://twitter.com/lupka)
For latest FAQs/info visit: http://alexchalupka.com/projects/wordpress/random-posts-widget/

Installation

  1. Download, unzip, and upload the random-posts-within-date-range-widget folder along with all its files to the /wp-content/plugins/ directory.
  2. Activez le plugin via le menu "plugins" dans WordPress.
  3. Go to the ‘Widgets’ page under ‘Appearance’ and drag an instance of the widget into the selected sidebar.
  4. Edit settings to meet desired effect.

A few important notes:
* If you click the “Always use current date as end point” box, it will override the “End Date” settings. (I had fancy JavaScript functions to validate/disable these menus, but ran into issues when running multiple instances of the widget. It’s on my to-do list for upcoming versions.)
* Likewise, if you click the “Use time relative to current date” box, it will override the above date settings.
* If the “Show Excerpt” box is checked and the post has a manual excerpt, WordPress will output the entire manual excerpt, regardless of what is entered in the “Excerpt Length” box.
* If you check the “Show Excerpt” box and leave the “Excerpt Length” box blank or with “0” entered, it will use the default 55 words.

The CSS of the widget can be edited much like any other HTML element. The structure is as follows:

<li class="random-post-element"> 
<p class="random-post-title"><a href="#">TITLE</a></p> 
<p class="random-post-date">DATE</p> 
<span class="random-post-excerpt>EXCERPT</span>     
</li>

Example CSS (used in screenshot):

.random-post-list {font-family:Arial, sans-serif;}
.random-post-element { margin:5px;}         
.random-post-title {font-size:14px;}
.random-post-title a {color:#000;}
.random-post-title a:hover {text-decoration:none;}
.random-post-date {font-size:12px; color:#333;}
.random-post-excerpt p{font-size:12px;}

The functionality of this plugin can be accessed outside of the widget with the use of this function:

random_posts_within_date_range($settings)

The function returns a post variable similar to that returned by WP_Query(). This allows you to use the_author(), the_content, etc. to create custom loops.

These are the values accepted for the $settings array used for the function (Sorry, it’s a little complex, hope to clean this up in the future):

$settings['count']; //INTEGER - Number of posts to retrieve 

$settings['start_month']; //INTEGER - month of start date (1-12) 
$settings['start_day']; //INTEGER - day of start date (1-31 depending on # of days in month) 
$settings['start_year']; //INTEGER - year of start date (after 1970) 

$settings['no_end']; //BOOLEAN - TRUE to allow current date to always be end, FALSE to use below value as end date
$settings['end_month']; //INTEGER - month of end date (1-12) (only used if 'no_end' is FALSE)
$settings['end_day']; //INTEGER - day of end date (1-31 depending on # of days in month) (only used if 'no_end' is FALSE)
$settings['end_year']; //INTEGER - year of end date (after 1970) (only used if 'no_end' is FALSE)

$settings['use_relative']; //BOOLEAN - TRUE to use relative date (i.e. "posts from the 5 days"), this overrides the above end and start values, FALSE use start and end date values
$settings['relative_months']; //INTEGER - number of months to go back to pull posts (only used if 'use_relative' is TRUE)
$settings['relative_days']; //INTEGER - number of days to go back to pull posts (only used if 'use_relative' is TRUE)
$settings['relative_years']; //INTEGER - number of years to go back to pull posts (only used if 'use_relative' is TRUE)

$settings['use_category']; //BOOLEAN - TRUE to only grab posts from specific category, FALSE to select from all categories
$settings['category']; //INTEGER - ID of category to pull posts from (only used if 'use_category' is TRUE)

This can then be used as follows:

<?php $random_posts = random_posts_within_date_range($settings); 

while ( $random_posts->have_posts() ){
    $random_posts->the_post();  ?>

    <p><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
    <p><?php the_time("F n, Y"); ?></p>
    <p><?php the_excerpt(); ?></p>              
    </li>

    <?php } ?>

Journal de modifications

N/A

1.0

  • Initial version of the plugin

1.1

  • Adds ability to use random_posts_within_date_range() function to access functionality outide of widgets and create custom loops with random posts.
  • Correction of small formatting problems with widget settings page in right-to-left languages.

1.1

  • Fixes small bug with post dates on the widget.

Journal des modifications complet sur WordPress.org →

Captures d'écran

This is the widget settings box you'll see in your widget admin screen.
This is the widget settings box you'll see in your widget admin screen.
An example of the plugin in action. Formatting/style can be changed via CSS. Check the installation guide for details.
An example of the plugin in action. Formatting/style can be changed via CSS. Check the…

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Random Posts Within Date Rang… alternatives

All categories plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Liste des catégories de publications Liste des catégories de publications Plugin très personnalisable pour répertorier les publications par catégorie (ou tag, auteur et plus) dans un article… Par Fernando Briano 70K+ ★★★★★★★★★★ 4.7 (254) il y a 5 mois 64
2 Assistante médiathèque Assistante médiathèque Améliore la médiathèque ; Gallery et liste de shortcodes puissants, prise en charge complète de la taxonomie… Par David Lingren 70K+ ★★★★★★★★★★ 4.8 (202) il y a 1 semaine 94
3 PublishPress Taxonomie – Tag, catégorie et taxonomie – Autotagger Ajouter automatiquement des termes Publier des taxonomies de presse Les balises, les catégories et les termes WordPress sont faciles avec les taxonomies PublishPress. Ajoutez une balise ou… par Publishippress 40K+ ★★★★★★★★★★ 4.6 (195) Il y a 2 jours 93
4 Catégories de médiathèques Catégories de médiathèques Ajoute la possibilité d'utiliser des catégories dans la bibliothèque multimédia. Par Jeffrey-WP 20K+ ★★★★★★★★★★ 4.2 (52) Il y a 3 mois 65
5 Catégories de haut niveau FV Catégories de haut niveau FV Il s'agit d'une solution du plugin de catégories de haut niveau pour WordPress 3.1. Et au-dessus. par FolioVision 20K+ ★★★★★★★★★★ 4.4 (23) Il y a 1 an 53
6 Publier des balises et des catégories de pages Publier des balises et des catégories de pages Ajoute les catégories et les balises WordPress intégrées à vos pages. par curtismchale 20K+ ★★★★★★★★★★ 4.8 (23) il y a 11 mois 61
7 Éditeur de description de termes visuels Éditeur de description de termes visuels Remplace la catégorie de texte brut et l'éditeur de description de balise par un éditeur visuel. par Bunge de karité 10K+ ★★★★★★★★★★ 5 (21) Il y a 2 ans 36
8 Widgets essentiels Widgets essentiels Essential Widgets est un plugin WordPress pour les widgets qui vous permet de créer et d'ajouter… par Attraper les thèmes 10K+ ★★★★★★★★★★ 3.5 (2) Il y a 6 mois 65
9 Masquer les catégories et les produits pour WooCommerce Masquer les catégories et les produits pour WooCommerce Masquer les catégories et les produits pour WooCommerce. Ce plugin nécessite WooCommerce pour être… Par nous Open Utile et simple 10K+ ★★★★★★★★★★ 4.1 (29) Il y a 2 mois 71
10 Autoriser le code HTML dans les descriptions de catégorie Autoriser le code HTML dans les descriptions de catégorie Ce plugin vous permet d'utiliser du HTML non filtré dans vos descriptions de catégorie en désactivant… Par Arno Esterhuizen 8K+ ★★★★★★★★★★ 5 (41) il y a 9 mois 61

FAQ

Random Posts Within Date Range Widg…: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Random Posts Within Date Range… free?

Yes. Random Posts Within Date Range… is free to download and use from the official WordPress.org plugin directory.

Is Random Posts Within Date Range… safe to use in 2026?

Random Posts Within Date Range… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites and was last updated 16 years ago, and scores 24/100 on our health check.

How many websites use Random Posts Within Date Range…?

Random Posts Within Date Range… is active on 20+ WordPress websites and has been downloaded 10,543 times since it launched in June 2010. It was downloaded 149 times in the last 30 days.

Does Random Posts Within Date Range… work with WordPress 7.1?

Random Posts Within Date Range… is officially tested up to WordPress 3.0.5, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Random Posts Within Date Range… last updated?

The latest version, 1.2, was released on September 12, 2010 (16 years ago).

Who makes Random Posts Within Date Range…?

Random Posts Within Date Range… is developed and maintained by lupka.

What are the best alternatives to Random Posts Within Date Range…?

The most popular alternatives to Random Posts Within Date Range… are List category posts (70K+ installs), Media Library Assistant (70K+ installs) and PublishPress Taxonomies (40K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir