Title: [Plugin: Custom Field Suite] &quot;Array&quot; being returned
Last modified: August 20, 2016

---

# [Plugin: Custom Field Suite] "Array" being returned

 *  Resolved [swirlyking](https://wordpress.org/support/users/swirlyking/)
 * (@swirlyking)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/)
 * This is what is on my single.php:
    <h5 class=”bottom_line projTitle”><?php echo
   $cfs->get(‘project-title’); ?></h5> and [this](http://clients.moderndog.com/wordpress/cfs.png)
   is what my Custom Field looks like. But it always returns “Array”. It was working
   for awhile, then it stopped – I don’t know when. Probably when something got 
   upgraded?
 * [http://wordpress.org/extend/plugins/custom-field-suite/](http://wordpress.org/extend/plugins/custom-field-suite/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [logikal16](https://wordpress.org/support/users/logikal16/)
 * (@logikal16)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/#post-2831982)
 * This is a bug caused by using a dash in the field name. I’ll try to have a patch
   out within the next few days, but a short-term fix would be to replace the dash
   with an underscore.
 * You *may* also need to update the field names in wp_postmeta:
 * `UPDATE wp_postmeta SET meta_key = 'project_title' WHERE meta_key = 'project-
   title';`
 *  Thread Starter [swirlyking](https://wordpress.org/support/users/swirlyking/)
 * (@swirlyking)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/#post-2831983)
 * Okay, I’ll replace the dash, but this is what I got back with your new line added:
   
   array(1) { [0]=> string(11) “Sallie Ford” }
 *  Thread Starter [swirlyking](https://wordpress.org/support/users/swirlyking/)
 * (@swirlyking)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/#post-2831984)
 * that fixed it! thank you.
 *  [logikal16](https://wordpress.org/support/users/logikal16/)
 * (@logikal16)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/#post-2831985)
 * Not a problem.
 *  [ujgreg](https://wordpress.org/support/users/ujgreg/)
 * (@ujgreg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/#post-2832269)
 * Hope it’s okay to reply to the same thread. I get this problem with a select 
   field only. I can’t have it anywhere on a page, not in the query, not outside
   of it. As soon as I change it to a text field, it works and I have other fields
   displaying as well. Otherwise it displays “array” only. I did add the global 
   cfs as well.
 * Tried this:
    `<?php echo $cfs->get('situation_setting', get_the_ID()); ?>`
 * And this:
 * `<?php echo $cfs->get('situation'); ?>`
 * Both work if I change it from a select field to a text field.
 * Any ideas? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Custom Field Suite] "Array" being returned’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [ujgreg](https://wordpress.org/support/users/ujgreg/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-suite-array-being-returned/#post-2832269)
 * Status: resolved