Browser: any
OS: Windows
I set up a condition: Show If custom field is empty
But, it’s not working. I’m sure the field is empty. Screen from database:
Browser: any
OS: Windows
I set up a condition: Show If custom field is empty
But, it’s not working. I’m sure the field is empty. Screen from database:
I made a custom function and it works fine
function gallery_check() {
$output = get_post_meta( get_the_ID(), 'galereia', true );
if ( !empty($output)) {
return $output;
}
else {
return 'empty';
}
}
Image rendered as I expected (when gallery is empty)
Hi Illarion,
Thanks so much for your report!
Unfortunately, I cannot reproduce the issue (1.11beta) on a regular page. The condition works in both directions (EMPTY/NOT EMPTY).
Best regards,
timmse