I believe I ran into a bit of an edge case with bidirectional relationship.
To summarize, when previewing a post that has a relationship
type field set to be bidirectional with a post object
type field, the post object
field’s value gets replaced with a revision id of the post I just previewed (probably the revision that wordpress generates to show the preview). The revision then automatically gets deleted and my post object
field ends up with an id that doesn’t exist.
Here are the steps to reproduce this behaviour :
I believe what might be happening here is WordPress generates a revision for previewing, which triggers the bidirectional saving in said revision and overrides the value in the post object field of the ingredient with the id of that revision. Could be something else entirely but I thought it seemed like a logical explanation.
I’ve been able to reproduce this issue with the latest WP version (6.1.1), the latest ACF Pro (6.0.7) and the latest ACFE (0.8.9) using the Twenty Twenty-Three theme on a fresh WP install.
I hope it’s not too confusing as it’s a bit hard to explain this. Don’t hesitate to ask for more details if needed.
Best regards,
]]>i just migrated to the newest version 7.1.5 and start migrating all forms from 6.4.16.
I am using an ACF “post-object” to let the user select a value from these posts on user-register-page.
In the old version, everything worked and the ACF-fields were shown and filled on the register-page.
Now, ACF fields are shown, but the select-box is not filled with the post-objects.
Any suggestions?
I would like to get this working before buying further extensions for TML.
Thanks in advance.
]]>I am very happy with your plugin. You guys are awesome.
I have two custom post type “Album” and “Singer”.
Album post has Post Object field which contain Singer post title. so in album post admin can select multiple singer.
Now the question is how can i display Album title in Singer detail page. Because admin has assign singer when created album post. so i want to display every album title in singer detail page.
I have tried with meta query but no idea how can i passed meta value. Please need your help.
Any help will be appreciated.
Thanks in advance!
]]>I have a problem with the REST API when using Post Object fields. I created a Post Object field so that the admin can select posts of a specific Custom Post Type. That’s works perfect but the problem is that in the endpoint I only get the selected posts with fields from the WordPress core, you know, the default ones. But those posts belong to a CPT that other ACFs also have.
I hope you can help me guys.
Thanks!
]]>First of all: I just installed your plug-in and I think it’s great. Finally a filter plug-in with free support for custom meta fields. However, one of those custom meta fields contains a post-object. Fortunately the filter can handle an object as it can extract and display the ID of the related post. I would rather display the post_title than the ID. I guess that would require just a bit of coding. To avoid to break your code I would like to know what hook and variables to use. I found this topic:https://www.ads-software.com/support/topic/acf-select-field-support/
Is this the hook I can use?
BTW, I will definitely rate your plugin as soon I have completed the configuration
]]>I am trying to setup a site using ACF Pro & Polylang. I have a lot of fields that are using the below field types:
– Link Field
– Post Object Field
– Relationship Field
When I am on a translated page, it does not allow me to select non-translated posts / pages in these fields. Is there a way to fix this? So for example, if I was on a german page I could link to a post / page in english.
Thanks,
Jess