When I use get_field(field, custom_post_id)
it returns null and is breaking the site. I tried downgrading to 5.10 but still facing the same issue.
I am running multisite and the get_field
is being called by
a callback from REST endpoint i.e register_rest_route()
which is initialised by child theme’s functions.php
.
Please help!