Post Finder
Creates a rich input field that allows a user to curate and rank content items (posts or other custom post types), (*1)
, (*2)
Installation
Clone the plugin to your wp-content/plugins/
directory., (*3)
Usage
In your theme, you can call pf_render( $name, $value, $options )
where you want to display a Post Finder field., (*4)
$name
: Name you want to use on the input field, (*5)
$value
: Currently selected value(s). Should be a comma-separated string of post_ids, (*6)
$options
(optional) : Array of options that will be used to build the input, (*7)
Current options
* show_numbers
- Whether to show a positional number next to each item. Makes it easy to see which position each item has. Default true.
* show_recent
- Whether to show the Recent Post select input. Default true.
* limit
- Limit how many items can be selected. Default 10.
* args
- Array of arguments passed to our WP_Query
instances. Allows customizations of these queries, like setting a specific post type. See the WordPress Developer Reference for supported arguments.
* include_script
- Whether to include the init script for the input. Default true. If false, you'll have to include this yourself in order for it to work., (*8)
jQuery( document ).ready( function( $ ) {
$( '.post-finder' ).postFinder();
} );
Support Level
Stable: 10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress., (*9)
Changelog
A complete listing of all notable changes to Post Finder are documented in CHANGELOG.md., (*10)
Contributing
Please read CODE_OF_CONDUCT.md for details on our code of conduct, CONTRIBUTING.md for details on the process for submitting pull requests to us, and CREDITS.md for a listing of maintainers of, contributors to, and libraries used by Post Finder., (*11)
Like what you see?
, (*12)