🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Posts 2 Posts Relationships icon
Peut-être abandonné Tested up to 5.8.20 #75 in custom post types

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.

Installations actives30+10+ niveaux
Téléchargements · 30D117▲ +88.7% vs prev. 30d
Évaluation5/51 avis
Score de santé31/100En danger
Téléchargements de tous les temps2.3KSince Jul 2021
Support résolu—Aucun fil de discussion récent
A besoin deWP 4.7PHP 5.5+
Téléchargements · 7j22▼ -26.7% week over week
Notre verdict

Envisager une 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.

  • Petite base d'utilisateurs (30+ installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 5 ans
  • Uniquement testé jusqu'à WordPress 5,8 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

369Sep 1Oct 15Nov 29
Hier5
Moyenne quotidienne (1 ans)2
Jour de pointe155 Mai 2026
12 Derniers mois905

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Posts 2 Posts Relationships stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
custom post types >100 10,000 Best custom post types plugins →
many-to-many >100 10,000 Best many-to-many plugins →
posts 2 posts >100 9,809 Best posts 2 posts plugins →
posts relationships >100 879 Best posts relationships plugins →
posts to posts >100 10,000 Best posts to posts plugins →

Adoption de version

Part de sites actifs par version.

  • 1.0100.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 1 avis

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Posts 2 Posts Relationships

À partir du Lisez-moi officiel · v1.0.0

Description

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.

Journal de modifications

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!

Journal des modifications complet sur WordPress.org →

Captures d'écran

Relations settings
Relations settings
Relation settings (details)
Relation settings (details)
Relationships metaboxes on custom post type edition
Relationships metaboxes on custom post type edition

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Posts 2 Posts Relationships alternatives

All custom post types plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Interface utilisateur du type de publication personnalisée Interface utilisateur du type de publication personnalisée Admin UI for creating custom content types like post types and taxonomies par WebDevStudios 1M+ ★★★★★★★★★★ 4.6 (276) il y a 5 mois 81
2 Meta Box – un cadre pour les sites Web dynamiques Meta Box – un cadre pour les sites Web dynamiques Framework de développeur pour créer des champs personnalisés et des méta-boxes avec du code. Aucune interface d'administration : pour un… par Meta Box 500K+ ★★★★★★★★★★ 4.8 (165) Il y a 2 jours 91
3 Pods – Types et champs de contenu personnalisés Pods – Types et champs de contenu personnalisés Pods est un cadre pour la création, la gestion et le déploiement de types de contenu personnalisés et… Par Scott Kingsley Clark 100K+ ★★★★★★★★★★ 4.8 (418) Il y a 3 mois 88
4 Sydney Toolbox Sydney Toolbox Enregistre des types de publication personnalisés et des champs personnalisés pour le thème de Sydney de Syed Balkhi 50K+ ★★★★★★★★★★ 2.2 (16) Il y a 2 mois 71
5 CMS Tree Page View – Reorder Pages with a Drag-and-Drop Tree CMS Tree Page View – Reorder Pages with a Drag-and-Drop Tree See every page as a drag-and-drop tree. Reorder your site structure in seconds — then edit… par Pär Thernström 50K+ ★★★★★★★★★★ 4.9 (365) il y a 4 jours 95
6 Extensions de cadre Apollo13 Extensions de cadre Apollo13 Ajoute des types de publication personnalisés, des shortcodes et certaines fonctionnalités utilisées dans les thèmes basés sur… par apollo13themes 20K+ ★★★★★★★★★★ 5 (1) il y a 4 jours 80
7 Essential Content Types Essential Content Types Essential Content Types allows you to feature the impressive content through different… par Attraper les thèmes 20K+ ★★★★★★★★★★ 3.7 (3) Il y a 2 semaines 76
8 Types de publications personnalisées et créateur de champs personnalisés – WCK Types de publications personnalisées et créateur de champs personnalisés – WCK Un outil indispensable pour créer des champs personnalisés, des types de publication personnalisés et des taxonomies, rapides et… par madalin.ungureanu 10K+ ★★★★★★★★★★ 4.7 (97) 3 semaines plus tôt 89
9 Post Types Unlimited Post Types Unlimited Create unlimited custom post types and custom taxonomies. par wpexplorer 10K+ ★★★★★★★★★★ 5 (9) il y a 7 mois 57
10 Formulaires de gravité + types de publication personnalisés Formulaires de gravité + types de publication personnalisés Mappez vos publications générées par la gravité sur un type de publication personnalisé et/ou des taxonomies personnalisées. par Dave de Gravity Wiz 10K+ ★★★★★★★★★★ 4.4 (46) Il y a 2 mois 72

FAQ

Posts 2 Posts Relationships: quick answers

Réponses directes, extraites des données en direct WordPress.org.

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).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir