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!
Our guide looks into WordPress custom fields and how they stack up against the possibilities of ACF.
— Advanced Custom Fields (@wp_acf) July 18, 2022
https://t.co/hk3yibkHyk
© 2022 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.