black friday sale

Creating relationships from posts to posts is a common question for WordPress developers. Previously, you can do that with the post field type in Meta Box. But that's not really the true solution, because you hardly create bi-directional relationships. Besides, querying by custom fields is not recommended.

So, we have created MB Relationships plugin that handle the relationships between posts, terms and users. It allows you to create not only posts to posts connections, but also posts to terms, posts to users and vice-versa. The plugin uses custom relationship database. So it's very lightweight and optimized for query performance.

These are some screenshots from the plugin interface:

In a nutshell, the plugin helps you to:

  • Create posts to posts, posts to terms, posts to users relationships with simple APIs.
  • Query connected posts, terms, users using built-in WordPress API (WP_Query, get_terms, get_users). You can query items that connected to or from specific items. The query is optimized to make sure you make only 1 call to the database.
  • Display connected items with shortcode

It's worth noting that the plugin is inspired by the very popular plugin Posts 2 Posts, which is no longer maintained. The author "scribu" has left WordPress community. So, we take the idea and build MB Relationships. We also received some requests from our users, so we think this is something that people want.

If you need a lightweight solution to connect posts to posts, then take a look at MB Relationship. And let me know what you think in the comments!

4 thoughts on “Introducing MB Relationships - A FREE WordPress Plugin to Create Posts to Posts Relationships

  1. Very interesting, good job and thanks for sharing such a good blog.your article is so convincing that I never stop myself to say something about it.You're doing a great job.Keep it up

  2. I will give it a try, but do you plan to integrate the "connection metadata" implemented in post2post?
    Keep it up!

    1. Yes, that's the plan. This is the first implementation of the plugin, to see if people are interested in.

  3. This looks like a very useful plugin. I'm planning to try using it to catalog my collection of antique hymnbooks and connection metadata would come in very handy.

Leave a Reply

Your email address will not be published. Required fields are marked *