This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

[NPC] Neatek Post Connect (many-to-many)


This plugin can make Many-To-Many connections of posts (also custom posts),
you can setup it in wp-admin/options-general.php?page=neatek-posts-connects

Plugin supports English and Russian languages.

Snippet to get connected posts:

    // $post_id = get_the_id();
    $query = npc_query_connected($post_id, 'needed_post_type');
    while($query->have_posts()) {

It will get all connected posts with posttype ‘needed_post_type’ for $post_id ID Post.
Also, you can get_posts() connected posts.

    // $post_id = get_the_id();
    $c_posts = npc_get_connected($post_id, 'needed_post_type');

You can modify WP_Query or get_posts() args:

    $args = array(
        'posts_per_page' => 5
    // $post_id = get_the_id();
    $c_posts = npc_get_connected($post_id, 'needed_post_type', $args);

Or you can just get IDS of connected posts:

    // $post_id = get_the_id();
    $ids = npc_get_post_ids($post_id, 'needed_post_type');

Important: Do not use ‘numberposts’, use ‘posts_per_page’.

The best alternative for:

Thank you for using my plugin.


Just install and press activate, and start setup.

  1. Go to wp-admin/options-general.php?page=neatek-posts-connects and connect some types of posts.
  2. Go to any posts in connected types.
  3. Create link between posts.
  4. Use Plugin functions in Theme.


January 30, 2019
Действительно не хватает данного функционала в wp, по первым тестам все работает как надо, спасибо.
Read all 1 review

Contributors & Developers

“[NPC] Neatek Post Connect (many-to-many)” is open source software. The following people have contributed to this plugin.


“[NPC] Neatek Post Connect (many-to-many)” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “[NPC] Neatek Post Connect (many-to-many)” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



First release.