Array syntax, or not
-
Hi,
Thank you for the plugin.
I have a form that writes a custom post type page.
One of my fields “photos” is used in the single page to display multiple photos, which works. In my blog page, I need to only show the first photo.
Here is an example of what my custom field outputs for 2 photos :
[“11\/mesinfos-closed-1.png”,”11\/salon-82.jpg”]
How can I get only the first path and not the subsequent ones for my blog page. It does work if there is only one photo upload but as soon as there are 2 or more, the path includes all the images. I believe it is your array function, but I don’t understand how it works apparently.
Thanks for any and all help.
- You must be logged in to reply to this topic.