Support

Account

Home Forums Add-ons Options Page get_field('xxx', 'options') not returning value anymore Reply To: get_field('xxx', 'options') not returning value anymore

  • So I did a little debugging:

    api.php (get_field)

    if i do:

    if( is_array($field) )
    {
    var_dump($field); // returns
    var_dump($field[‘value’]); // null
    exit;

    $return = $field[‘value’];
    }

    http://pastie.org/private/grhoao9xwi76daw7rzkoq

    If I grab the last_query w/ wpdb

    $return = get_option(‘_’ . $post_id . ‘_’ . $field_name);
    global $wpdb;
    print_r($wpdb->last_query);

    SELECT post_id, meta_key, meta_value FROM wp_19_postmeta WHERE post_id IN (63)

    should be grabbing from wp_options from the primary blog no? shouldn’t be wp_19