Display Posts Meta Compare
Add a meta_compare argument to the Display Posts shortcode
by Matt Mirus · github.com/mmirus/display-posts-meta-compare · website
★ 0stars
1composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mmirus/display-posts-meta-compare/archive/refs/heads/master.zipAlso on Packagist as mmirus/display-posts-meta-compare:
composer require mmirus/display-posts-meta-compareDeclares an update source (https://github.com/mmirus/display-posts-meta-compare), so updates arrive through the plugin's own updater.
From the readme
Display Posts Meta Compare
Add a metacompare argument to the Display Posts shortcode.
You must have the Display Posts plugin installed. Docs for the plugin can be found at https://displayposts.com/.
Possible values for metacompare are the ones available in a WPQuery: '=', '!=', '', '=', '<', '<=', '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
There are three options for installing this plugin:
1. With composer from Packagist: composer require mmirus/display-posts-meta-compare
2. With GitHub Updater
3. By downloading the latest release ZIP from this repository and installing it like any normal WordPress plugin
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).
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.0.0 | Jan 25, 2019 | — | — |