PHPackages                             mmirus/display-posts-meta-compare - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mmirus/display-posts-meta-compare

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

mmirus/display-posts-meta-compare
=================================

Add a meta\_compare argument to the Display Posts shortcode

1.0.0(7y ago)01MITPHPPHP &gt;=7.1.0

Since Jan 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mmirus/display-posts-meta-compare)[ Packagist](https://packagist.org/packages/mmirus/display-posts-meta-compare)[ Docs](https://github.com/mmirus/display-posts-meta-compare)[ RSS](/packages/mmirus-display-posts-meta-compare/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Display Posts Meta Compare
==========================

[](#display-posts-meta-compare)

Add a meta\_compare argument to the Display Posts shortcode.

You must have the [Display Posts plugin](https://wordpress.org/plugins/display-posts-shortcode/) installed. Docs for the plugin can be found at .

```
[display-posts meta_key="my_custom_field" meta_compare="!=" meta_value="a value"]

```

Possible values for `meta_compare` are the ones available in a `WP_Query`: '=', '!=', '&gt;', '&gt;=', '&lt;', '&lt;=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN', 'EXISTS', 'NOT EXISTS', 'REGEXP', 'NOT REGEXP', and 'RLIKE'.

I haven't tested many different types of comparison, however, and it's likely that some won't work. Feel free to submit a PR or create an issue if you run into problems.

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

[](#installation)

There are three options for installing this plugin:

1. With composer from [Packagist](https://packagist.org/packages/mmirus/display-posts-meta-compare): `composer require mmirus/display-posts-meta-compare`
2. With [GitHub Updater](https://github.com/afragen/github-updater)
3. By downloading the latest release ZIP from this repository and installing it like any normal WordPress plugin

Contributing
------------

[](#contributing)

To work on this project (for yourself or to contribute a PR):

1. Clone this repo
2. Run `composer install`

And you should be good to go.

Pre-commit linting is enforced (PSR-2 for PHP).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2712d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/524994?v=4)[Matt Mirus](/maintainers/mmirus)[@mmirus](https://github.com/mmirus)

---

Top Contributors

[![mmirus](https://avatars.githubusercontent.com/u/524994?v=4)](https://github.com/mmirus "mmirus (3 commits)")

---

Tags

shortcodewordpress-pluginwordpressshortcodedisplay posts

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mmirus-display-posts-meta-compare/health.svg)

```
[![Health](https://phpackages.com/badges/mmirus-display-posts-meta-compare/health.svg)](https://phpackages.com/packages/mmirus-display-posts-meta-compare)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k456.5k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

374458.3k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[maiorano84/shortcodes

Implement Shortcode syntax anywhere

7664.2k5](/packages/maiorano84-shortcodes)

PHPackages © 2026

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