Conditonal Gget_post_meta
-
I am using a conditional statement to check if a custom field has a value with a verve meta box plugin using a check box.
I am using this but it isnt echoing my ‘widerColumn’ class.
<?php if (get_post_meta($post->ID, 'wider_text_column', true) ) : ?> <?php echo 'widerColumn'; ?> <?php endif; ?>"
I have checked the name of custom field and it is correct. Hep appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conditonal Gget_post_meta’ is closed to new replies.