thanks for replying. I tried this code.
It only output one image where it should have done and the lat tags at the top of the sidebar.
I tried moving return $output; to before } // end foreach, but it was the same problem?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users