Home › Forums › Bug Reports › Notice: Undefined index: value (…)\core\location.php on line 397 › Reply To: Notice: Undefined index: value (…)\core\location.php on line 397
You can you submit a new ticket for that https://support.advancedcustomfields.com/new-ticket/. But the problem isn’t that there is a non-existent post, the problem is that the value is not set at all. Here is an example:
this location rule will not create an error, but it can never be met since there will never be a post with an ID of 0
// .....
'location' => array (
array (
array (
'param' => 'post',
'operator' => '==',
'value' => '0',
),
),
),
// .....
However, this location rule will cause the error you posted because the value parameter is not included
// .....
'location' => array (
array (
array (
'param' => 'post',
'operator' => '==',
),
),
),
// .....
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.