Home › Forums › Front-end Issues › ACF not working on moved site › Reply To: ACF not working on moved site
Hm i got “Notice: Array to string conversion in… line 7/line 9
<?php
global $options;
foreach ($options as $value) {
if(!isset($value[‘id’])) continue;
if (get_option( $value[‘id’] ) === FALSE) {
if(isset($value[‘std’]))
$$value[‘id’] = $value[‘std’];
} else {
$$value[‘id’] = get_option($value[‘id’]);
}
}
?>
It looks too complicated for me
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.