I’m getting the following error when displaying data from a repeater field
Catchable fatal error: Object of class WP_Post could not be converted to string in /wp-content/plugins/advanced-custom-fields-pro/api/api-template.php on line 899
The data is a Post Object field. When Return Format field is set to Post Object, the error displays, if set to POST ID, it shows the ID.
Anyone have any ideas of how to fix this?
Hi @jdoubleya6,
Thanks for the post.
It is most likely that the error is arising from your code.
The function on the line is expecting a string but it looks like you are passing an array.