🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Sort Query Posts icon
Peut-être abandonné Testé jusqu'à 3.4.2 #1 in order_by

Sort Query Posts

A really simple and lightweight plugin (73 lines of code – comments included) to sort posts on-the-fly without making a new query to the database (improves performance).

Installations actives100+100+ niveaux
Téléchargements · 30D122▲ +34.1% vs prev. 30d
Évaluation5/53 avis
Score de santé32/100En danger
Téléchargements de tous les temps12.5KSince Jan 2011
Support résolu—Aucun fil de discussion récent
A besoin deWP 2.5Php tout
Téléchargements · 7j33▼ -10.8% week over week
Notre verdict

Envisager une alternative

Sort Query Posts shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 5/5 and was last updated 14 years ago, and scores 32/100 on our health check.

  • Petite base d'utilisateurs (plus de 100 installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 14 ans
  • Uniquement testé jusqu'à WordPress3,4 (le dernier est de 7,1)

Téléchargements quotidiens

369Aug 31Oct 14Nov 28
Hier3
Moyenne quotidienne (1 ans)2
Jour de pointe1210 Septembre 2026
12 Derniers mois698

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 Sort Query Posts stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
order_by #50 59 Best order_by plugins →
poster >100 10,000 Meilleurs plugins de publication →
query >100 10,000 Best query plugins →
reorder >100 1,629 Best reorder plugins →
sorte >100 3,271 Les meilleurs plugins de tri →

Adoption de version

Part de sites actifs par version.

  • 1.1100.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 3 avis

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Sort Query Posts

À partir du Lisez-moi officiel · v1.1

Description

A really simple and lightweight plugin (73 lines of code – comments included) to sort posts on-the-fly without making a new query to the database (improves performance).

Caractéristiques :

  • Supports all order_by and order values of the query_posts function except meta_value and meta_value_num (which require a database query).
  • Supports changing the order of all types of posts, including custom post type posts and custom post type “archive” posts.

Documentation

This plugin adds the function sort_query_posts_by(string $order_by [, string $order]) to the global context.
The second $order parameter is optional. Its default value is asc (ascending order).

Call this function before the loop to change how posts are ordered.
After calling this function you can show the posts as you normally would.

You can sort posts by:

  • author
  • comment_count
  • date
  • ça
  • menu_order
  • modified
  • parent
  • title

This is specially useful in two cases:

  • When you need to reorder the posts returned by the query that WordPress creates from your given URL. Custom post type “archive” posts are a great example of this case.
  • When you need the posts returned by your customized query (e.g. query_posts()) to be shown more than once on the same page and ordered differently.

Exemples :

<?php sort_query_posts_by('title', 'desc'); ?>

The example above will sort posts by their title in descending order without making a new query to the database.
This way sorting is performance friendly.

<?php sort_query_posts_by('ID'); ?>

The example above will sort posts by their ID in ascending order.

<?php sort_query_posts_by('rand'); ?>

The example above will sort posts randomly. When sorting randomly $order is ignored.

Plugin developed by Túbal Martín at www.margenn.com.

Installation

  1. Télécharger le dossier sort-query-posts dans le répertoire /wp-content/plugins/
  2. Activez le plugin via le menu « Plugins » dans WordPress
  3. Use the added function sort_query_posts_by after any wordpress query and your posts will be sorted to your needs.

Journal de modifications

1.1

  • Code refactored for improved performance. Updating is recommended.

Journal des modifications complet sur WordPress.org →

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é

FAQ

Sort Query Posts: quick answers

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

Source : WordPress.org

Is Sort Query Posts free?

Yes. Sort Query Posts is free to download and use from the official WordPress.org plugin directory.

Is Sort Query Posts safe to use in 2026?

Sort Query Posts shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 5/5 and was last updated 14 years ago, and scores 32/100 on our health check.

How many websites use Sort Query Posts?

Sort Query Posts is active on 100+ WordPress websites and has been downloaded 12,461 times since it launched in January 2011. It was downloaded 122 times in the last 30 days.

Does Sort Query Posts work with WordPress 7.1?

Sort Query Posts is officially tested up to WordPress 3.4.2, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Sort Query Posts last updated?

The latest version, 1.1, was released on September 4, 2012 (14 years ago).

Who makes Sort Query Posts?

Sort Query Posts is developed and maintained by Tubal.

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