PeterD Posted August 22, 2023 at 10:46 AM Share Posted August 22, 2023 at 10:46 AM I have some old listings in a category (listing type) to which I have assigned new fields. Everything works so far, but when I work with the following query I get an error on all listings where the field is not filled in <?php if (in_array('option-value', $CustomFields->fieldValue('jr_fieldname',$listing))): ?> <!-- Conditional output --> <?php endif; ?> Error: 0 in_array(): Argument #2 ($haystack) must be of type array, bool given Link to comment
Solution Alejandro Posted August 22, 2023 at 11:57 AM Solution Share Posted August 22, 2023 at 11:57 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
PeterD Posted August 22, 2023 at 12:45 PM Author Share Posted August 22, 2023 at 12:45 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts