I have a repeating field who’s sub-field is a relational field. Works fine until I try to display the repeating sub-fields.
I get an error that the Object can’t be converted to a string.
Any ideas?
relationship fields return either an array of post IDs or an array of post objects. These cannot displayed with the_field()
or echo get_sub_field()
. See the documentation for the relationship field for information on how to display the value https://www.advancedcustomfields.com/resources/relationship/.