Hello again @elliot
This is a follow up topic from this one: http://support.advancedcustomfields.com/forums/topic/page-link-and-page-object-not-working/
Since after I changed the field to relationship the issue now is that it does not save the values..
I have a relationship field inside a repeater field and it works as it should when editing the page, but on save it does not save the value and the “selected-area” is empty (where my selected page should be).
I’ve tried creating another relationshipfield in the repeater which has the same issue, and a relationship field outside of the repeater which works.
Could it be that this is also a result of php memory not being enough?
I doubt that it will be a memory issue. But you can test this by creating a new page with a simple field group on it with just a repeater and relationship sub field.
The relationship field only saves post_id values, so I doubt it is timing out.
How are you with debugging? Can you edit the relationship field file and play around with the update_value function?
Just do some simple print_r and die debugging.
I’m having the same problem with WP 3.6, ACF 4.2.1 and Flexible Content Field 1.0.2. I’ve tried creating a new flexible field with a relationship field inside it. After putting error_log(var_export($value, true)); into line 891 of core/fields/relationship.php I can see nothing in my error log wrong with the values that are being passed through the function — but no values are being saved.
The topic ‘Relationship field not saving values’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.