Unfortunately this is still causing internal server errors 🙁
Tried commenting out the foreach loop, still crashes
Even simply trying to add fields for get_permalink or get_category causes it to crash
It does not crash when i add string fields
$v -> ‘test’ works
Im using wordpress as rest api so im not sure how to get details about the error
Wp debug mode set to true but doesnt record any error logs 😐