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 2mo 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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e086e1cd20dd9bb0c385c51f3738e836df1ae23cd5d229562c8508e1e9c2ce2?d=identicon)[mmirus](/maintainers/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.5k441.8k2](/packages/roots-bedrock)[pingpong/shortcode

Laravel - Simple shortcode based on wordpress shortcode

4040.0k1](/packages/pingpong-shortcode)

PHPackages © 2026

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