plugin-icon

MB Relationships

A lightweight solution for creating relationships between posts, terms and users in WordPress.
Valoración
4.6/5
Versión
1.12.8
Instalaciones activas
1K
Última actualización
Jul 15, 2025
MB Relationships

MB Relationships helps you create relationships between posts, pages, custom post type, terms and users. The plugin is lightweight and optimized for database and query performance.

The plugin allows you to create connections from posts to posts, posts to pages and so on. Then you can perform corresponding queries to retrieve posts that are connected to or from given posts.

Meta Box Lite We recommend using Meta Box Lite, a feature-rich free UI version of Meta Box that provides UI and all free features for managing custom fields and dynamic content on WordPress, including post types, taxonomies, custom fields, and relationships.

It supports reciprocal and bi-directional relationships.

Why Do You Need Posts To Posts Relationships In WordPress?

Post relationships is a missing part in WordPress. The only «built-in» way that mimic the post relationship in WordPress is the post_parent for pages where you can create many child pages of a page (a one-to-many relationship). Unfortunately, that’s available for pages and hierarchical post types only. Besides, it’s not many-to-many relationship.

Below are some examples of posts to posts relationships that might help you see the benefit of this feature:

Creating Related Posts In WordPress

The simplest example is to manually create related posts in your WordPress website. When you edit a post, you can select posts that have similar or related content and display them in the frontend for further reading.

You can also query backward: displaying posts that link to the being read post as a reference to provide more information to your readers. With this, you don’t need a WordPress related posts plugin anymore.

Example: Events And Bands

Imagina que tienes dos tipos de contenido personalizado, evento y orquesta, donde:

  • In each event there may be multiple bands, and
  • Each band can participate in many events.

If people want to buy tickets, they could search for events in their location and see what bands are playing on a given date, or they could search for bands they like and see what date they are playing near their location.

En éste ejemplo, hemos creado una relación de varios-a-varios entre eventos y orquestas.

Bi-directional relationships

MB Relationships te permite crear relaciones bidireccionales. Podrás hacer consultas de ida y vuelva sin problemas.

Los datos se almacenan en la base de datos como un par de (from_id, to_id), así los hace independientes en cualquier sentido.

Además, en cada sentido, hay una caja meta que muestra cómo están conectados de/a. No te debes preocupar sobre la dirección de la relación nunca más.

An Alternative For The Posts 2 Posts Plugin (P2P Plugin)

MB Relationships está muy inspirado en el popular plugin Posts 2 Posts que se ha dejado de mantener. Hemos cogido la idea y le hemos realizado unas mejoras. La base del código y las estructura de los datos es muy similar.

Plugin features

  • Simple APIs: the plugin provides simple APIs for registering relationships and retrieving connected items. It integrates with existing WordPress APIs such as WP_Query,get_terms and get_users. See documentation for more information.
  • Uses custom relationship table to store relationships. That helps optimize the database storage and query performance.
  • You can create relationships between any kind of content in WordPress: posts to posts, posts to users, etc. For posts to terms and posts to users, it’s required the MB Term Meta and MB User Meta.
  • Supports creating reciprocal relationships (posts-posts, users-users, …).
  • Supports creating bi-directional relationships and easily query them.
  • Display connected items easily with shortcode.
  • Extremely lightweight and fast.

Plugin Links

Éste plugin es una extensión gratuita del plugin Meta Box, es una solución potente y profesional para crear campos personalizados y cajas meta personalizadas para webs en WordPress. Utilizando MB Relationships combinado con otras extensiones te ayudará a gestionar distintos tipos de contenido en WordPress fácilmente y hacer tu web más profesional.

You might also like

If you like this plugin, you might also like our other WordPress products:

  • Meta Box – A powerful WordPress plugin for creating custom post types and custom fields.
  • Slim SEO – A fast, lightweight and full-featured SEO plugin for WordPress with minimal configuration.
  • Slim SEO Schema – An advanced, powerful and flexible plugin to add schemas to WordPress.
  • Slim SEO Link Manager – Build internal link easier in WordPress with real-time reports.
  • GretaThemes – Free and premium WordPress themes that clean, simple and just work.
  • Auto Listings – A car sale and dealership plugin for WordPress.
Gratiscon el plan Business
Probado hasta
WordPress 6.8.3
Te puedes descargar este plugin para utilizarlo en tu sitio de .