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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.