🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Inject Query Posts icon
Verlangsamen Getestet bis 6.8.13 #14 in loop

Inject Query Posts

This plugin provides a function for use by developers who have their own code for fetching posts according to a given criteria and now want to make use of loop-aware template tags to display those posts.

Aktive Installationen10+10+ Stufe
Downloads · 30d117▲ +36% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score32/100In Gefahr
Downloads aller Zeiten6.3KSince Sep 2010
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 3.6PHP ANY
Downloads · 7d20▲ +33,3% Woche über Woche
Unser Urteil

Betrachten Sie eine Alternative

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

  • Kleine Benutzerbasis (10+ 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

4914Aug 31Oct 14Nov 28
Gestern4
Täglicher Durchschnitt (1 Jahr)2
Spitzentag2526. August 2026
Letzte 12 Monate669

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

Ranglisten

Where Inject Query Posts stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
loop >100 3,698 Best loop plugins →
Beiträge >100 10,000 Beste Beiträge Plugins →
query >100 10,000 Best query plugins →
template tags >100 7,264 Best template tags plugins →
wp_query #95 541 Best wp_query plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 2.2100.0%

About Inject Query Posts

From the official readme · v3.0.5

Beschreibung

This plugin provides a function for use by developers who have their own code for fetching posts according to a given criteria and now want to make use of loop-aware template tags to display those posts.

WordPress’s template tags are intended to be used within ‘the loop’. The loop is managed by a WP_Query object which sets up various global variables and its own object variables for use by the various template tags. The primary purpose of a WP_Query object is to actually query the database for the posts that match the currently specified criteria. However, if you don’t need to query for posts since you already have them by some other means, you can still take advantage of the template tags by injecting those posts into the WP_Query via this plugin.

Depending on the template tags you are looking to use, or the logic you are hoping to employ within a loop, you may need to manually configure some of the query object’s variables.

Beispiel:

<?php // Say we're in the sidebar

// We've gotten some post objects on our own.
$posts = c2c_get_random_posts( 5, '' );

// Inject the posts
c2c_inject_query_posts( $posts );

// Now let's display them via template tags:
if ( have_posts() ) :
    while ( have_posts() ) : the_post(); ?>

        <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>

    <?php endwhile;?>
<?php endif; ?>

Links: Plugin-Homepage | Plugin-Verzeichnisseite | Github | Auto-Homepage

Entwicklerdokumentation

Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the template tag and hooks provided by the plugin.

As an overview, this is the template tag provided by the plugin:

  • c2c_inject_query_posts() : Template tag to inject an array of posts into a query object as if that query object had obtained those posts via a query.

These are the hooks provided by the plugin:

  • inject_query_posts_preserve_query_obj : Overrides the value of the $preserve_query_obj argument passed to the function. This is not typical usage for most users.
  • c2c_inject_query_posts : Allows use of an alternative approach to safely invoke c2c_inject_query_posts() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site.

Installation

  1. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  2. Aktivieren Sie das Plugin über das Admin-Menü „Plugins“ in WordPress
  3. Use the c2c_inject_query_posts() function to inject an array of posts into a WP query object. Specify the posts array as the first argument. Configure the query object by passing an array as the second argument. If specifying a WP query object, pass it as the third object; if not specified then the global wp_query object will be assumed.

Änderungsprotokoll

Trivial update: noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025)

3.0.5 (2025-04-22)

  • Change: Note compatibility through WP 6.8+
  • Change: Note compatibility through PHP 8.3+
  • Change: Update copyright date (2025)
  • Unit-Tests:
    • Change: Explicitly define return type for overridden method

3.0.4 (2024-08-02)

  • Change: Note compatibility through WP 6.6+
  • Change: Update copyright date (2024)
  • New: Add .gitignore file
  • Change: Reduce number of ‘Tags’ from readme.txt
  • Change: Remove development and testing-related files from release packaging
  • Unit-Tests:
    • Hardening: Prevent direct web access to bootstrap.php
    • Allow tests to run against current versions of WordPress
    • New: Add composer.json for PHPUnit Polyfill dependency
    • Change: In bootstrap, store path to plugin directory in a constant

3.0.3 (2023-05-18)

  • Change: Add link to DEVELOPER-DOCS.md to README.md
  • Change: Tweak installation instruction
  • Change: Tweak some documentation text spacing and fix a typo
  • Change: Note compatibility through WP 6.3+
  • Change: Update copyright date (2023)
  • New: Add a potential TODO feature

Das vollständige Änderungsprotokoll ist in Changelog.md verfügbar.

Vollständiges Änderungsprotokoll auf WordPress.org →

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 Inject Query Posts alternatives

All loop plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 ECS – Ele Custom Skin for Elementor ECS – Ele Custom Skin for Elementor Seven free modules for Elementor: dark mode, container layouts, mobile menu, editorial… by dudaster 100K+ ★★★★★★★★★★ 4.6 (117) Vor 6 Tagen 94
2 Tangible: Loops & Logic Tangible: Loops & Logic Loops & Logic is a template system with content loops and conditions. by Tangible 2K+ ★★★★★★★★★★ 4.9 (39) Vor 3 tagen 88
3 Addoncraft Repeater For Elementor ACF Addoncraft Repeater For Elementor ACF Addoncraft Repeater for Elementor ACF lets you display ACF Repeater fields in… by AddonsCraft 100+ ★★★★★★★★★★ 5 (5) Vor 3 Monaten 60
4 No Sub-Category Posts in Loops No Sub-Category Posts in Loops Once activated, only posts from the current category are displayed in your loop (no posts… by Glenn Ansley 90+ ★★★★★★★★★★ 5 (3) Vor 11 Jahren 32
5 WP Query Creator WP Query Creator WP Query Creator provides an interface for creating WP queries as shortcodes. by Patel 70+ ★★★★★★★★★★ 3 (1) Vor 2 Jahren 29
6 Loops Block Loops Block Query loop the post, user, taxonomy with filters by AVtheme 40+ ★★★★★★★★★★ Keine Bewertungen Vor 4 Wochen 67
7 Elevate Parent Category Template Elevate Parent Category Template Elevates parent category template to top of WordPress Loop. by echoz 40+ ★★★★★★★★★★ Keine Bewertungen Vor 16 Jahren 24
8 Post Category Post Category Use Shortcode to Loop Post From specific Categorie. by naples 30+ ★★★★★★★★★★ 5 (3) Vor 10 Jahren 31
9 Wp Loop Wp Loop Creates a Widget to display a Masonry, Infinite scroll, filterable loop of posts or… by mimo 30+ ★★★★★★★★★★ 5 (2) Vor 10 Jahren 31
10 Easy Easy Easy, but complex widget website builder. by 2046 20+ ★★★★★★★★★★ 5 (8) Vor 10 Jahren 36

Fragen und Antworten

Inject Query Posts: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Inject Query Posts free?

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

Is Inject Query Posts safe to use in 2026?

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

How many websites use Inject Query Posts?

Inject Query Posts is active on 10+ WordPress websites and has been downloaded 6,334 times since it launched in September 2010. It was downloaded 117 times in the last 30 days.

Does Inject Query Posts work with WordPress 7.1?

Inject Query Posts 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 Inject Query Posts last updated?

The latest version, 3.0.5, was released on April 23, 2025 (2 years ago).

Who makes Inject Query Posts?

Inject Query Posts is developed and maintained by Scott Reilly.

What are the best alternatives to Inject Query Posts?

The most popular alternatives to Inject Query Posts are ECS (100K+ installs), Tangible: Loops & Logic (2K+ installs) and Addoncraft Repeater For Ele… (100+ 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