• Resolved UN_Rick

    (@un_rick)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Gibbs

    (@mgibbs189)

    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

    (@un_rick)

    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.