🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Custom Query Shortcode icon
Verlangsamen Getestet bis 6.8.13

Custom Query Shortcode

This plugin gives you [query] shortcode which enables you to query and output any posts filtered by specific attributes.

Aktive Installationen20+10+ Stufe
Downloads · 30d80▼ -12.1% vs prev. 30d
Wertung5/51 Bewertungen
Gesundheits-Score40/100In Gefahr
Downloads aller Zeiten3.7KSince Sep 2015
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 3.3PHP ANY
Downloads · 7d18▼ -37.9% week over week
Unser Urteil

Betrachten Sie eine Alternative

Custom Query Shortcode shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites, is rated 5/5 and was last updated 1 year ago, and scores 40/100 on our health check.

  • Kleine Benutzerbasis (20+ aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Kein Update in über einem Jahr
  • Nur getestet bis WordPress 6.8 (letzt ist 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

246Sep 4Oct 18Dec 2
Gestern3
Täglicher Durchschnitt (1 Jahr)2
Spitzentag910.10.2026
Letzte 12 Monate680

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Custom Query Shortcode stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
Post >100 10,000 Beste Post-Plugins →
query >100 10,000 Best query plugins →
Shortcode >100 10,000 Beste Shortcode-Plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 0.5100.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 1 reviews

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

About Custom Query Shortcode

From the official readme · v0.5.0

Beschreibung

This plugin gives you [query] shortcode which enables you to query and output any posts filtered by specific attributes.

Verwendung

You can use most parameters supported by WP_Query class to filter the posts; you can query for specific post types, categories, tags, authors, etc.

Other supported parameters

Aside from WP_Query parameters, the shortcode also supports the following additional parameters:

  • featured: to query for sticky posts which by default are excluded from the query.
  • thumbnail_size: to specify the size of the {THUMBNAIL} images. You can use built-in image sizes or custom ones you’ve defined.
  • content_limit: to limit the number of words of the {CONTENT} var; by default it’s “0” which means it outputs the whole content.
  • posts_separator: text to display between individual posts.
  • lens: custom output template – see description below.
  • twig_template: output template using Twig templating engine – requires the Timber library.

Formatting the output

You can define how you want to format the output inline within an opening [query] and closing [/query] tag.
Available keywords are: TITLE, CONTENT, AUTHOR, AUTHOR_URL, DATE, THUMBNAIL, CONTENT, COMMENT_COUNT.

The following example will display the latest 5 posts from the category with the ID of 3, showing a post title and comment count, with a link to the post:
[query posts_per_page=”5″ cat=”3″]

{TITLE} ({COMMENT_COUNT})

[/query]

Grid display

With the “cols” parameter you can display the output in a grid.
[query posts_per_page=”3″ cols=”3″] {THUMBNAIL}

{TITLE}

{CONTENT} [/query]
will display the latest 3 posts in the defined template, in 3 columns.
The plugin will automatically divide the grid into rows based upon the ‘posts_per_page’ option, divided by the ‘cols’ option.

Lenses (output templates)

With the “lens” parameter you can customize the display of the query results using a template. Some basic lenses/templates are provided:

  • ul: unordered list of linked post titles.
  • ul-title-date: same as ‘ul’, but also displays the posted date.
  • article-excerpt: series of articles, with a header containing the linked post title, and the excerpt.
  • article-excerpt-date: same as ‘article-excerpt’, but also displays the posted date.
  • cards: displays the post thumb above the header with linked post title, followed by the excerpt.

Bootstrap lenses

Some pre-defined lenses/templates are provided which use JavaScript Components from the Bootstrap CSS framework. The generated markup is compliant with the 5.x version of Bootstrap.

This feature relies on Bootstrap library to be already loaded on the page, the plugin does not include it.

If you’re using a Bootstrap-based theme, this should work; otherwise you can use the Bootstrap plugin).

Tabs

This will show the latest 3 posts in a tabbed widget.
[query posts_per_page=”3″ lens=”tabs”]

Accordion

This will create an accordion widget of all our posts from the “faq” post type.
[query posts_per_page=”0″ post_type=”faq” lens=”accordion”]

Carousel

This creates a carousel of latest five featured posts:
[query posts_per_page=”5″ featured=”true” lens=”carousel”]

Custom Lenses/templates

You can create your own custom templates and put them into one of these pre-defined folder names within your theme:

  • ‘query-shortcode-templates’
  • ‘partials/query-shortcode-lenses/’
  • ‘html/lenses/’

Or simply specify your own subfolder in the ‘lens’ parameter:
[query lens=”folder/template-name”]

Twig Template Support

Starting with version 0.4, you can use Twig templates for your output. Support for Twig is provided by the Timber library.

This requires that Timber 2.x be installed as a Composer dependency.

To use a Twig template for your query output, simply use the 'twig_template' parameter instead of the 'lens' parameter, and provide the path to your template. By default, Timber looks within the views folder in your active theme. You can change the default template location in Timber.

Beispiele:

[query twig_template="template-name.twig"]
[query twig_template="folder/template-name.twig"]

Installation

  1. Upload the whole plugin directory to the /wp-content/plugins/ directory
  2. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
  3. Now use [query] shortcode anywhere you want.
  4. Enjoy!

Änderungsprotokoll

Upgrades are handled just like any other WordPress plugin.

0.5.0

  • Security release – fixes to address path traversal vulnerability as noted in CVE-2025-8562.
  • Added localization template .pot

0.4.0

  • Added Twig templating support via the Timber Library – note we do not include Timber with this plugin.

0.3

  • Added a new directory to search for lenses within the current theme – ‘query-shortcode-templates’
  • Revamped readme.txt documentation

0.2.5

  • Changed lens ‘ul’, removing post date. I also added lens ‘ul-title-date’, which is the equivalent of the previous ‘ul’ lens.

0.2.4

  • Added lens ‘ul’, presenting an unordered list of query results with post date displayed.

0.2.3

  • Added lens ‘article-excerpt-date’, which is the same as ‘article-excerpt’, except with the post date displayed.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

Example of shortcode syntax
Example of shortcode syntax

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.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Custom Query Shortcode alternatives

All post plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Post Duplicator Post Duplicator Creates functionality to duplicate any and all post types, including taxonomies & custom… by metaphorcreations 200K+ ★★★★★★★★★★ 4.8 (80) Vor 2 Wochen 95
2 Header and Footer Scripts Header and Footer Scripts Header and Footer Scripts plugin allows you to add scripts to WordPress site's and just… by Anand Kumar 200K+ ★★★★★★★★★★ 4.6 (58) Vor 10 Monaten 51
3 Post Type Switcher Post Type Switcher A simple way to change a post's type in WordPress von John James Jacoby 200K+ ★★★★★★★★★★ 4.8 (255) Vor 2 Monaten 76
4 Erweiterter Auszug Erweiterter Auszug Kontrollieren Sie das Aussehen von WordPress Post-Auszügen von wpkube 80K+ ★★★★★★★★★★ 4.3 (101) Vor 4 Monaten 63
5 Vom Server hinzufügen Vom Server hinzufügen Add From Server wurde entwickelt, um den Schmerz von schlechten Webhosts zu lindern, so dass Sie… von Dion Hulse 50K+ ★★★★★★★★★★ 4.6 (239) Vor 6 Jahren 46
6 Revision Control Revision Control Revision Control allows finer control over the Post Revision system included with WordPress von Dion Hulse 40K+ ★★★★★★★★★★ 4.4 (36) Vor 9 Jahren 45
7 Reveal IDs Reveal IDs What this plugin does is to reveal most removed IDs on admin pages, as it was in versions… by wpseek 40K+ ★★★★★★★★★★ 5 (61) Vor 4 Monaten 81
8 Themify Portfolio Post Themify Portfolio Post Add a simple Portfolio post type to your site. von thefyme 30K+ ★★★★★★★★★★ 5 (1) Vor 3 Wochen 81
9 WP Admin UI Customize WP Admin UI Customize Customize the management screen UI. by gqevu6bsiz 20K+ ★★★★★★★★★★ 4.6 (59) Vor 2 Jahren 45
10 WP-PostRatings WP-PostRatings Adds an AJAX rating system for your WordPress site's content. Von Lester Chan 20K+ ★★★★★★★★★★ 4.4 (178) Vor 3 Monaten 77

Fragen und Antworten

Custom Query Shortcode: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Custom Query Shortcode free?

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

Is Custom Query Shortcode safe to use in 2026?

Custom Query Shortcode shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites, is rated 5/5 and was last updated 1 year ago, and scores 40/100 on our health check.

How many websites use Custom Query Shortcode?

Custom Query Shortcode is active on 20+ WordPress websites and has been downloaded 3,688 times since it launched in September 2015. It was downloaded 80 times in the last 30 days.

Does Custom Query Shortcode work with WordPress 7.1?

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

When was Custom Query Shortcode last updated?

The latest version, 0.5.0, was released on August 22, 2025 (1 year ago).

Who makes Custom Query Shortcode?

Custom Query Shortcode is developed and maintained by Peter Hebert.

What are the best alternatives to Custom Query Shortcode?

The most popular alternatives to Custom Query Shortcode are Post Duplicator (200K+ installs), Header and Footer Scripts (200K+ installs) and Post Type Switcher (200K+ installs).

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

↑↓ bewegen↵ öffnen