reverse if(!empty($customField))
-
How would you reverse this? so if the custom field is empty show posts
<?php $newquery = new WP_Query(); $newquery->query('post_type=log'); while($newquery->have_posts()) : $newquery->the_post(); $customField = get_post_custom_values('complete'); if(!empty($customField)) { ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘reverse if(!empty($customField))’ is closed to new replies.