Skip Navigation

[Resolved] When creating a many-to-many post relationship, custom fields don't appear

This support ticket is created 4 years, 9 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by brandonK-3 4 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1500055
Relationship_problem_Page_5.jpg
Relationship_problem_Page_4.jpg
Relationship_problem_Page_3.jpg
Relationship_problem_Page_2.jpg
Relationship_problem_Page_1.jpg

I am trying to: Create a many-to-many post relationship between a custom post type called "Program", which has a relationship with another post type called "Schedule". The Program stores details of by me associating a Post Fields group for it and same with the Schedule, I associate a different Post fields group to it.

Link to a page where the issue can be seen: (Only in the admin)

I expected to see: I expect to have the ability to add or edit either a "Program" or "Schedule" custom post once I've created the many-to-many relationship between them and be able to see the custom fields assigned to both.

Instead, I got: When I go to add or edit a "Program" post type, I can see all the custom fields there, at the bottom of the post type, if I choose to Add a new "Schedule" now that a relationship has been created, a modal pops up and I can see all the custom fields for that post type. However, if I go directly in to edit a "Schedule" and not do it through the relationship table in the "Program" post, then I don't see any of the custom post fields I have assigned to that post type.

Is this by design? I would have assumed custom fields would have still been available when editing both sides directly.

#1501117

Hello,

Thanks for the details, I can see the problem in your website, and I am downloading the files, will update here if there is anything found.

#1501219
schedule.JPG

Here are what I found, the problem is in plugin "WP Redis", I have tried these in my localhost:
1) Deactivate plugin "WP Redis"
2) Remove file \wp-content\object-cache.php

Then I can see the custom field when edit single "Schedule" post, see screenshot: schedule.JPG

#1501403

Hey Luo Yang, spot on with diagnosis. Object caching with WP-Redis, I'll look more into this plugin. It was installed by default with EasyEngine when you create a site with caching enabled, so I might need to look at an alternative.

Thanks once again!