Posts 2 Posts Relationships
This plugin allows you to create many-to-many relationships between posts of any type: post, page, custom post types, etc.
Consider an alternative
Posts 2 Posts Relationships shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites, is rated 5/5 and was last updated 5 years ago, and scores 31/100 on our health check.
- Small user base (30+ active installs)
- Very few reviews so far
- No update in 5 years
- Only tested up to WordPress 5.8 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Posts 2 Posts Relationships stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| custom post types | >100 |
| many-to-many | >100 |
| posts 2 posts | >100 |
| posts relationships | >100 |
| posts to posts | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About Posts 2 Posts Relationships
From the official readme · v1.0.0Description
This plugin allows you to create many-to-many relationships between posts of any type: post, page, custom post types, etc.
Configure post 2 post connections easily in a friendly interface.
The new connection metaboxes will appear on the related post edition pages. Search text, post type and term combo filter available as option for it.
Use the standard WP_Query() and get_posts() to get the related posts.
Solid-rock relationships: use his own database table, updated on post status change and removed on post deletion.
Getting related: the WP_Query way
// inside main loop, current post ID (p2p_rel_post_id) not needed, current post will be used if you don't set it:
$args = array(
'p2p_rel_key' => 'prod_to_bars', // This is your connection key name. Required.
'p2p_rel_post_id' => 1, // The post ID. Inside main loop dont needed.
'p2p_rel_direction' => 'any', // The connection direction. 'any' by default. Optional. Explained below. ( can be 'any' | 'from_to' | 'to_from' )
// Of course, here you can add the standard WP arguments you need: post type, status, dates, pagination, etc.
);
// (at this point, as any other WP looping):
// The Query
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
echo '<ul>';
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo '<li>' . get_the_title() . '</li>';
}
echo '</ul>';
} else {
// no posts found
echo '<p>Nothing related</p>';
}
// Restore original Post Data
wp_reset_postdata();
Getting related: the get_posts() way
// inside main loop, current post ID (p2p_rel_post_id) not needed, current post will be used if you don't set it:
$args = array(
'p2p_rel_key' => 'prod_to_bars', // This is your connection key name. Required.
'p2p_rel_post_id' => 1, // The post ID. Inside main loop dont needed
'p2p_rel_direction' => 'any', // The connection direction. 'any' by default. Optional. Explained below. ( can be 'any' | 'from_to' | 'to_from' )
'post_type' => 'any', // The filtered post types, can be an array. Optional. 'post' by default. (can be 'any' for all)
'suppress_filters' => false // Required
// Of course, here you can add the standard WP arguments you need: post type, status, dates, pagination, etc.
);
// (at this point, as any other WP looping):
$rel_posts = get_posts ( $args );
print_r( $rel_posts );
Getting related: getting it raw
// inside main loop, current post ID (element_id) not needed, current post will be used if you don't set it:
$args = array(
'key' => 'prod_to_bars', // This is your connection key name. Required.
'element_id' => 1, // The post ID. Inside main loop dont needed.
'element_type' => 'any', // The filtered post types, can be an array. Optional. 'post' by default. (can be 'any' for all)
'status' => 'any' // The filtered post status, can be an array. Optional. 'publish' by default. (can be 'any' for all)
'direction' => 'any', // The connection direction. 'any' by default. Optional. Explained below. ( can be 'any' | 'from_to' | 'to_from' )
);
global $P2P_Relationships;
$rel_posts = $P2P_Relationships->get_raw ( $args );
// Only an array of related post IDs, not the posts objects.
print_r ( $rel_posts );
The connection direction
By default, the connections are bidirectional (any). However, you can get related posts only in one direction: ‘from_to’ or ‘to_from’.
You can do the same logic at interface level for your users in the backoffice: you can setup your connection hidding the from metabox or the to metabox (UI mode setting).
Installation
See Installing Plugins.
After activating it, go to Settings > P2P Relationships, and create your new post 2 post connections.
Changelog
1.0.0 – 2021-07-19
- Checked for WordPress 5.8
- Added warning and removal option for orphan relationships
- Text-domain changed to the same as plugin slug: posts-2-posts-relationships
0.0.2 – 2021-07-13
- Solved admin pane layout broken issue
0.0.1 – 2021-07-07
- Hello world!
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Posts 2 Posts Relationships alternatives
All custom post types plugins →FAQ
Posts 2 Posts Relationships: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Posts 2 Posts Relationships free?
Yes. Posts 2 Posts Relationships is free to download and use from the official WordPress.org plugin directory.
Is Posts 2 Posts Relationships safe to use in 2026?
Posts 2 Posts Relationships shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites, is rated 5/5 and was last updated 5 years ago, and scores 31/100 on our health check.
How many websites use Posts 2 Posts Relationships?
Posts 2 Posts Relationships is active on 30+ WordPress websites and has been downloaded 2,324 times since it launched in July 2021. It was downloaded 117 times in the last 30 days.
Does Posts 2 Posts Relationships work with WordPress 7.1?
Posts 2 Posts Relationships is officially tested up to WordPress 5.8.20, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Posts 2 Posts Relationships need?
Posts 2 Posts Relationships requires PHP 5.5 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Posts 2 Posts Relationships last updated?
The latest version, 1.0.0, was released on July 19, 2021 (5 years ago).
Who makes Posts 2 Posts Relationships?
Posts 2 Posts Relationships is developed and maintained by wp-centrics.
What are the best alternatives to Posts 2 Posts Relationships?
The most popular alternatives to Posts 2 Posts Relationships are Custom Post Type UI (1M+ installs), Meta Box (500K+ installs) and Pods (100K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



