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).
Betrachten Sie eine 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.
- Kleine Benutzerbasis (100+ aktive Installationen)
- Bisher sehr wenige Bewertungen
- No update in 14 years
- Only tested up to WordPress 3.4 (latest is 7.1)
Tägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Sort Query Posts stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| order_by | #50 |
| Post | >100 |
| query | >100 |
| reorder | >100 |
| sort | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 3 reviews
About Sort Query Posts
From the official readme · v1.1Beschreibung
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).
Eigenschaften:
- Supports all
order_byandordervalues of the query_posts function exceptmeta_valueandmeta_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.
Dokumentation
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
- id
- 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.
Beispiele:
<?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
- Upload
sort-query-postsfolder to the/wp-content/plugins/directory - Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
- Use the added function
sort_query_posts_byafter any wordpress query and your posts will be sorted to your needs.
Änderungsprotokoll
1.1
- Code refactored for improved performance. Updating is recommended.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Fragen und Antworten
Sort Query Posts: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: 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.
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
