Support » Plugin: Meta Box - WordPress Custom Fields Framework » Having trouble connecting users to cpt

  • Resolved Jon Schroeder


    I’ve installed the Meta Box plugin after trying with Posts 2 Posts and discovering that they don’t really support user to post connections (they do, but the connection meta box doesn’t show on the “create user” or “edit user” screen). It looks perfect for my needs.

    The idea here is that I’d like to connect users of the “client” role with the CPT “projects,” then display those projects to the logged in user based on whichever ones are connected (as part of a backend for an oil well site).

    I add the code from here into my plugin (also tried it in the functions.php file:

    Unfortunately, I’m not seeing a connection metabox show up on either the user side or on the post side (I’ve tried using the vanilla code, and I’ve tried connecting it with my CPT, but nothing seems to have any affect at all.

    This plugin looks like the natural successor to P2P, and I’d love to be able to buy into it fully, as P2P hasn’t been supported for a number of years and I’d imagine that Gutenberg might break it.

    Just wanted to see if you might know what I’m doing wrong, or if there’s a step I’m missing!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jon Schroeder


    UPDATE: I realized that I didn’t install the relationships addon. Figured that out, and the connection is registered and working fine on the CPT side of things.

    However, it doesn’t appear to display at all on the “create user” or “edit user” page, which is unfortunately the reason I am making the switch from P2P as is.

    Is displaying that meta box on the user edit screen a capability this plugin (or one of its addons) has?

    Thread Starter Jon Schroeder


    UPDATE: It would appear I might need the MB User Meta plugin to display the metabox on the user end.

    Is that correct?

    Will that give my client the ability to select connect projects to a given user while creating or editing a user?

    Plugin Author Anh Tran


    Hi Jon,

    It’s correct that you need the MB User Meta extension to create relationships to users. Then you can let your users select the projects in their profile page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Having trouble connecting users to cpt’ is closed to new replies.