Having trouble connecting users to cpt
-
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:
https://docs.metabox.io/extensions/mb-relationships/#creating-users-to-posts-relationshipUnfortunately, 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!
- The topic ‘Having trouble connecting users to cpt’ is closed to new replies.