Download the PHP package mmirus/display-posts-meta-compare without Composer
On this page you can find all versions of the php package mmirus/display-posts-meta-compare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mmirus/display-posts-meta-compare
More information about mmirus/display-posts-meta-compare
Files in mmirus/display-posts-meta-compare
Package display-posts-meta-compare
Short Description Add a meta_compare argument to the Display Posts shortcode
License MIT
Homepage https://github.com/mmirus/display-posts-meta-compare
Informations about the package 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 installed. Docs for the plugin can be found at https://displayposts.com/.
Possible values for meta_compare
are the ones available in a WP_Query
: '=', '!=', '>', '>=', '<', '<=', '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:
- With composer from Packagist:
composer require mmirus/display-posts-meta-compare
- With GitHub Updater
- 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):
- Clone this repo
- Run
composer install
And you should be good to go.
Pre-commit linting is enforced (PSR-2 for PHP).