Hi. I’m hoping there’s a simple solution to this. Using ACF I have a list of required checkboxes in the post meta which chooses from a set of images to be displayed in the frontend. It works fine except that for each additional image selected to appear an extra comma appears at the end of the row of images.
Please see attached screenshot. These commas are being added dynamically and I’ve not accidentally included a comma in the ACF value to be displayed.
Thanks for the reply mediawerk but that’s not the case. Initially I had all the images display normally before making them optional using ACF. There were no commas then. The commas have appeared only since using ACF to display the images and I’ve checked all code and values for stray commas – there are none.
It seems to me as though ACF is more geared towards displaying text, and somehow separates each text value with a comma automatically. This is useful but not when the values are images rather than text.