Title: Array syntax, or not
Last modified: November 6, 2019

---

# Array syntax, or not

 *  [richyvoc](https://wordpress.org/support/users/richyvoc/)
 * (@richyvoc)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/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.

The topic ‘Array syntax, or not’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)

 * 0 replies
 * 1 participant
 * Last reply from: [richyvoc](https://wordpress.org/support/users/richyvoc/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/array-syntax-or-not/)
 * Status: not resolved