We can talk bit later for frontend but first I would like to know why post relationship-box is not displayed on post add/edit form.
Please check the following test site, you can auto-login using the following link:
- lien caché
On post relationship page, you will see a many-to-many post relationship created between post types "Gyms" and "Personal Trainers", the post relationship name is: "Gyms Personal Trainers"
- lien caché
Now, when I try to add/edit post on either "Gyms" or "Personal Trainers" post type, I will be able to see the post relationship-box for the post relationship I've created "Gyms Personal Trainers":
Gym Post example - notice the post relationship-box at bottom of this edit post: section "Gyms Personal Trainers", from where you can see the related posts attached to this Gym, we can say list of personal trainers belongs to this Gym
- lien caché
Personal Trainer post example: notice the post relationship-box at bottom of this edit post: section "Gyms Personal Trainers"
- lien caché
Now, it seems there must be some conflict or post-relationship is not created as expected or corrupted or you did hide the post-relationship box in backend - have you added any custom code to hide it?
As shared with my previous reply:
- https://toolset.com/forums/topic/showing-comment-count-of-related-cpt/#post-2311011
I visit the subtitle-project single post you shared:
- lien caché
When I edit the above post:
- lien caché
I do not see any posts connected to "Drama" posts and even I do not see the post relationship box for relationship:
- "Dramas Subtitles"
Even on drama edit post screen I do not see the post relationship box for the many-to-many post relationship "Dramas Subtitles":
- lien caché
So, my first initial question is where post-relationship-box is gone, why its not get displayed.
If you try a clean install and create many-to-many post relationship between your desired post type, you will see the post-relationship box on post add/edit screen at bottom of post as you can see with the test site I shared.