Download the PHP package helick/related-posts without Composer
On this page you can find all versions of the php package helick/related-posts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download helick/related-posts
More information about helick/related-posts
Files in helick/related-posts
Package related-posts
Short Description The Helick related posts plugin
License MIT
Informations about the package related-posts
Helick Related Posts
The plugin provides a simple related posts functionality with the following features:
- Ability to manually override related posts
- ElasticPress integration
Requirements
Make sure all dependencies have been installed before moving on:
Install
Via Composer:
Usage
The plugin exposes a single function that returns a list of post IDs.
$postId is the ID of the post to get related content for.
$args allows you some control over the posts that are returned:
- int limit: defaults to
10
- array post_types: array of post types to limit results to, defaults to
['post']
- array taxonomies: array of taxonomies to compare against, defaults to
['category']
- array terms: array of
WP_Term
objects, results will match these terms - array terms_not_in: array of
WP_Term
objects, results will not match these terms - bool ep_integrate: if true then ElasticPress is used to get the results, defaults to
defined('EP_VERSION')
Custom post type support
Control supported post types:
Control associated post types:
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Evgenii Nasyrov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of related-posts with dependencies
composer/installers Version ^1.6
helick/contracts Version ^1.1
htmlburger/carbon-fields Version ^3.1
wp-cli/wp-cli Version ^2.2