PHPackages                             helick/related-posts - 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. helick/related-posts

ActiveWordpress-plugin

helick/related-posts
====================

The Helick related posts plugin

v1.2.1(6y ago)1139[1 PRs](https://github.com/helick/related-posts/pulls)MITPHPPHP &gt;=7.1

Since Jul 31Pushed 5y agoCompare

[ Source](https://github.com/helick/related-posts)[ Packagist](https://packagist.org/packages/helick/related-posts)[ RSS](/packages/helick-related-posts/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

Helick Related Posts
====================

[](#helick-related-posts)

[![Latest Version on Packagist](https://camo.githubusercontent.com/30b9215285874a874a34c68c341432cb112e79b96aa123e6bd8fa746ea80ad15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656c69636b2f72656c617465642d706f7374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/helick/related-posts)[![Total Downloads](https://camo.githubusercontent.com/adc6c76af51dd4b1926558ad3067dcab227c36da270d209eb84892f79f3298f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656c69636b2f72656c617465642d706f7374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/helick/related-posts)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/f2131cea8bd97e1efac8bd4bfc58ccfe94776ffe7086bf45ca12b3d3bb903e12/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f68656c69636b2f72656c617465642d706f7374732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/helick/related-posts)

The plugin provides a simple related posts functionality with the following features:

- Ability to manually override related posts
- [ElasticPress](https://github.com/10up/ElasticPress) integration

Requirements
------------

[](#requirements)

Make sure all dependencies have been installed before moving on:

- [PHP](http://php.net/manual/en/install.php) &gt;= 7.1
- [Composer](https://getcomposer.org/download/)

Install
-------

[](#install)

Via Composer:

```
$ composer require helick/related-posts
```

Usage
-----

[](#usage)

The plugin exposes a single function that returns a list of post IDs.

```
$postIds = Helick\RelatedPosts\get(int $postId, array $args = []);
```

**$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

[](#custom-post-type-support)

Control supported post types:

```
add_filter('helick_related_posts_supported_post_types', function (array $postTypes) {
    $postTypes[] = 'your-custom-post-type';

    return $postTypes;
});
```

Control associated post types:

```
add_filter('helick_related_posts_associated_post_types', function (array $postTypes) {
    $postTypes[] = 'your-custom-post-type';

    return $postTypes;
});
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Evgenii Nasyrov](https://github.com/nasyrov)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Every ~4 days

Total

4

Last Release

2466d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d5180ba0cd30309ada4562457c6337069906fea97f827f1c24b82fddb1bdc9a?d=identicon)[nasyrov](/maintainers/nasyrov)

---

Tags

composerwordpresswordpress-pluginrelated postshelick

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/helick-related-posts/health.svg)

```
[![Health](https://phpackages.com/badges/helick-related-posts/health.svg)](https://phpackages.com/packages/helick-related-posts)
```

###  Alternatives

[wp-cli/entity-command

Manage WordPress comments, menus, options, posts, sites, terms, and users.

1048.8M55](/packages/wp-cli-entity-command)[wp-cli/import-command

Imports content from a given WXR file.

217.3M5](/packages/wp-cli-import-command)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)

PHPackages © 2026

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