The code below works fine locally to populate a dropdown. On the client server it returns the right posts (when you echo $post in the foreach linke 60) but it does not populate the dropdown.
Anything I'm missing that could make it work different on a different server?