Title: Getting Empty Array code
Last modified: August 21, 2016

---

# Getting Empty Array code

 *  Resolved [UN_Rick](https://wordpress.org/support/users/un_rick/)
 * (@un_rick)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-empty-array-code/)
 * Hi,
 * I’ve tried steps 1-5 on your troubleshooting page, but I keep getting “array(
   0) { } ” (displayed on front end) where I should be getting custom field values.
 * Changing themes, disabling other plugins, does not change anything.
 * In FFox debug I see these jQuery warnings;
 * migrateWarnings
    [“jQuery is not compatible with Quirks Mode”, “jQuery.browser
   is deprecated”, “jQuery.attrFn is deprecated”] “jQuery is not compatible with
   Quirks Mode” “jQuery.browser is deprecated” “jQuery.attrFn is deprecated” “jQuery.
   event.handle is undocumented and deprecated”
 * Here is my version info (note I’ve tried with and without the other plugins off;
   no change).
 * WordPress 3.7.1
    PHP 5.3.17 Apache Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0)
   Gecko/20100101 Firefox/25.0
 * — Active Plugins —
    Custom Field Suite 2.0.2 Limit Login Attempts 1.7.1 Weaver
   II Theme Extras 2.1.2 What Template File Am I Viewing? 1.2 WP Maintenance Mode
   1.8.11
 * I’d really like to give your plugin a spin, if you could help me resolve this.
 * Thank you,
 * Rick
 * [http://wordpress.org/plugins/custom-field-suite/](http://wordpress.org/plugins/custom-field-suite/)

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

 *  Plugin Author [Matt Gibbs](https://wordpress.org/support/users/mgibbs189/)
 * (@mgibbs189)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-empty-array-code/#post-4390286)
 * Check to make sure that the fields are attached to the current post. If not, 
   you may need to manually pass a post ID into CFS.
 *     ```
       var_dump( $post_id ); // see the current post ID
   
       var_dump( $cfs->get() ); // output all fields for the current post
   
       var_dump( $cfs->get( false, 123 ) ); // get field values for a specified post
       ```
   
 *  Thread Starter [UN_Rick](https://wordpress.org/support/users/un_rick/)
 * (@un_rick)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/getting-empty-array-code/#post-4390323)
 * Hello,
 * Thanks for the quick reply.
 * After setting the Taxonomy Terms to match the category of my test post, fields
   are showing in the output as attached, but they aren’t otherwise visible on the
   page(just via the debug output).
 * Seems like I’m closer to making this happen; what would you suggest I do to get
   these fields to appear?
 * Also, could you please let me know if this plugin has front end search or sort
   functions (which would make it even more useful for inventory management)?
 * Thanks for your help,
 * Rick

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

The topic ‘Getting Empty Array code’ 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/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [UN_Rick](https://wordpress.org/support/users/un_rick/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/getting-empty-array-code/#post-4390323)
 * Status: resolved