PHPackages                             devaloka/network-wp-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. devaloka/network-wp-query

ActiveWordpress-plugin

devaloka/network-wp-query
=========================

A WordPress plugin that provides Network-wide WP Query for Multisite environment

v0.2.0(9y ago)161.3k3[6 issues](https://github.com/devaloka/network-wp-query/issues)GPL-2.0PHPPHP &gt;=5.5.9

Since Dec 31Pushed 5y ago3 watchersCompare

[ Source](https://github.com/devaloka/network-wp-query)[ Packagist](https://packagist.org/packages/devaloka/network-wp-query)[ Docs](https://github.com/devaloka/network-wp-query)[ RSS](/packages/devaloka-network-wp-query/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Network WP Query
================

[](#network-wp-query)

[![Latest Stable Version](https://camo.githubusercontent.com/a9adf4b0660790f48654f14eadd10939a3dd088c62b33247b705527b8f14af94/68747470733a2f2f706f7365722e707567782e6f72672f646576616c6f6b612f6e6574776f726b2d77702d71756572792f762f737461626c65)](https://packagist.org/packages/devaloka/network-wp-query)[![Latest Unstable Version](https://camo.githubusercontent.com/543ac68c7b34f2c1ea37c5df900bd02258b526f6bb406a68c1c5b34348244f38/68747470733a2f2f706f7365722e707567782e6f72672f646576616c6f6b612f6e6574776f726b2d77702d71756572792f762f756e737461626c65)](https://packagist.org/packages/devaloka/network-wp-query)[![License](https://camo.githubusercontent.com/2be21b11d92c5aa862a3339c83ebc03072f1e2e614423464074f61800252f974/68747470733a2f2f706f7365722e707567782e6f72672f646576616c6f6b612f6e6574776f726b2d77702d71756572792f6c6963656e7365)](https://packagist.org/packages/devaloka/network-wp-query)[![Build Status](https://camo.githubusercontent.com/d35ed03eb15e572493278f1a0aff4a3d612f0aeb1d23098b1752a99d74d4ca8c/68747470733a2f2f7472617669732d63692e6f72672f646576616c6f6b612f6e6574776f726b2d77702d71756572792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/devaloka/network-wp-query)

A WordPress plugin that provides Network-wide WP\_Query for Multisite environment.

This plugin is based on / a improved version of [WP\_Query\_Multisite](https://github.com/miguelpeixe/WP_Query_Multisite)(a custom version of [WP\_Query\_Multisite](https://github.com/ericandrewlewis/WP_Query_Multisite)).

Installation
------------

[](#installation)

### Manual Installation

[](#manual-installation)

1. Just copy all files into `wp-content/plugins/network-wp-query/`.

### Manual Installation (as a Must-Use plugin)

[](#manual-installation-as-a-must-use-plugin)

1. Just copy all files into `wp-content/mu-plugins/network-wp-query/`.
2. Move `network-wp-query/loader/50-network-wp-query-loader.php`into `wp-content/mu-plugins/`.

### Installation via Composer

[](#installation-via-composer)

1. Install via Composer.

    ```
    composer require devaloka/network-wp-query
    ```

### Installation via Composer (as a Must-Use plugin)

[](#installation-via-composer-as-a-must-use-plugin)

1. Install via Composer.

    ```
    composer require devaloka/network-wp-query
    ```
2. Move `network-wp-query` directory into `wp-content/mu-plugins/`.
3. Move `network-wp-query/loader/50-network-wp-query-loader.php`into `wp-content/mu-plugins/`.

Example Usage
-------------

[](#example-usage)

### Standard Loop

[](#standard-loop)

```

```

### Query to several specific Sites

[](#query-to-several-specific-sites)

```

```

### Query excluding several specific Sites

[](#query-excluding-several-specific-sites)

```

```

### Limit the number of posts per Site

[](#limit-the-number-of-posts-per-site)

```

```

Parameters
----------

[](#parameters)

NameTypeDescriptionnetworkboolintWhether perform network-wide query.sites\_\_inint\[\]Blog IDs to include in the query.sites\_\_not\_inint\[\]Blog IDs to excluded from the query.posts\_per\_siteintThe number of posts per Site to retrieve.References
----------

[](#references)

- [ericandrewlewis/WP\_Query\_Multisite](https://github.com/ericandrewlewis/WP_Query_Multisite)
- [miguelpeixe/WP\_Query\_Multisite](https://github.com/miguelpeixe/WP_Query_Multisite)
- [\#22816 (Multisite WP\_Query) – WordPress Trac](https://core.trac.wordpress.org/ticket/22816)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Total

5

Last Release

3326d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac3e763a965107007fec45e7af50ce9122f3a8985fb7823fa1654dfa13d10abd?d=identicon)[whizark](/maintainers/whizark)

---

Top Contributors

[![whizark](https://avatars.githubusercontent.com/u/1211058?v=4)](https://github.com/whizark "whizark (77 commits)")[![iobot](https://avatars.githubusercontent.com/u/18593717?v=4)](https://github.com/iobot "iobot (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

multisitenetworkpluginwordpresswp-querypluginwordpressnetworkmultisitewp\_query

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/devaloka-network-wp-query/health.svg)

```
[![Health](https://phpackages.com/badges/devaloka-network-wp-query/health.svg)](https://phpackages.com/packages/devaloka-network-wp-query)
```

###  Alternatives

[10up/elasticpress

Supercharge WordPress with Elasticsearch.

1.3k374.3k6](/packages/10up-elasticpress)[humanmade/network-media-library

Network Media Library provides a central media library that's shared across all sites on the Multisite network.

29644.8k](/packages/humanmade-network-media-library)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47078.8k](/packages/sybrew-the-seo-framework)[bueltge/wordpress-multisite-enhancements

Enhance Multisite for Network Admins with different topics

1113.6k](/packages/bueltge-wordpress-multisite-enhancements)[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
