Skip Navigation

[Resolved] Custom Posts Not Listed When Creating Relationship

This thread is resolved. Here is a description of the problem and solution.

Problem: When editing a post in wp-admin, I would like to assign a relationship between the current post and another existing post. However the list of post options in the relationship field is incomplete, and several posts are not assignable.

Solution: In this case, the post relationship type was "one-to-many". That means if a child post is already associated with another parent post, it cannot be associated to the current parent post. That would require a new many-to-many relationship.

Relevant Documentation:
https://toolset.com/documentation/post-relationships/
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by charlesB-5 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1374107
image012.jpg

IN POST PARADOXES

When trying to link posts between a "paradox" and a "Mot" through the Relationship.

In the Post (backend) of a paradox you look in the proposed list to connect to existing mot. Some Mots are proposed but not all ?!!!? Some mot are not proposed although they exist as Mots in the Post Type Mot.

Example In the paradox « Fils intérieur/extérieur » trying to connect this paradox with the Mot « fils (de la femme être humain)”. Looking in the view below you’ll see that this mot is not proposed, although this mot appears when you search it in the Post Mot.

Trying to see why these active posts Mots are not appearing therefore can't be linked.

Thanks

#1374207

In the Post (backend) of a paradox you look in the proposed list to connect to existing mot. Some Mots are proposed but not all ?!!!? Some mot are not proposed although they exist as Mots in the Post Type Mot.
The Paradox - Mot relationship is one to many - hidden link. Therefore, if a Mot is already assigned to another Paradox, it will not appear in the suggestion list. One Mot cannot be related to multiple Paradoxes, that would require a many-to-many relationship. The Mot post "fils (de la femme être humain, le fils extérieur)" is already connected to the Paradox "Le fils du Père" in this relationship, so it will not appear in the suggestion list for another Paradox post unless you disconnect it first from the currently linked Paradox.

#1374209

I uderstand, thank you.
Can I just simply update the Relationship from "One to Many" to "Many to Many"?

#1374223

No I do not recommend modifying an existing relationship type. I recommend creating a new relationship and setting up the appropriate connections in that new relationship, otherwise you may experience unexpected problems with existing relationship connections.

#1374251

I understand.
After I create this new many to many relationship, is it possible to import/merge the One to Many into the new Manu to Many? Thanks

#1374253

I don't recommend trying to export / manipulate / re-import relationships like that, it's complicated and usually not worth the time you'll invest in getting it exactly right. I would start over with the correct relationship type and fill in the correct connections from scratch.

#1374315

My issue is resolved now. Thank you!