Title: custom fields always returns array
Last modified: August 21, 2016

---

# custom fields always returns array

 *  [jothikannan](https://wordpress.org/support/users/jothikannan/)
 * (@jothikannan)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-fields-always-returns-array/)
 * Hi,
 * i have created a custom field name for my custom post types, for event and location,
 * created custom fields named event photos and location photos, there is no problem
   with event photos, but while update the values in the locations custom post type
   it always returns an array, but image are listing in the admin end, but while
   get the photos on front end it return array only, i have check it with the my
   post_meta table and the source looks below
 * `a:2:{i:0;s:86:"http://demo.osiztechnologies.com/event-reservation/wp-content/
   uploads/2013/09/res4.jpg";i:1;s:86:"http://demo.osiztechnologies.com/event-reservation/
   wp-content/uploads/2013/09/res4.jpg";}`
 * so oly it returns array, what i have to do here ? any idea? but in the events
   photo fields are looking fine in the table
 * and while update these array it returns the following errors:
 * Warning: parse_url() expects parameter 1 to be string, array given in wp-content/
   plugins/types/embedded/includes/fields/file.php on line 51
 * Warning: pathinfo() expects parameter 1 to be string, array given in /wp-content/
   plugins/types/embedded/includes/fields/file.php on line 55
 * Warning: parse_url() expects parameter 1 to be string, array given in wp-content/
   plugins/types/embedded/includes/fields/file.php on line 51
 * Warning: pathinfo() expects parameter 1 to be string, array given in /wp-content/
   plugins/types/embedded/includes/fields/file.php on line 55
 * Warning: Cannot modify header information – headers already sent by (output started
   at plugins/types/embedded/includes/fields/file.php:51) i wp-admin/post.php on
   line 222
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/demoosiz/public_html/event-reservation/wp-content/plugins/types/embedded/
   includes/fields/file.php:51) in /home/demoosiz/public_html/event-reservation/
   wp-includes/pluggable.php on line 875
 * this also happening only with the images fields, other fields are working fine
 * [http://wordpress.org/plugins/types/](http://wordpress.org/plugins/types/)

The topic ‘custom fields always returns array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 0 replies
 * 1 participant
 * Last reply from: [jothikannan](https://wordpress.org/support/users/jothikannan/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/custom-fields-always-returns-array/)
 * Status: not resolved