Help Needed
-
Hi
Can someone please help me with some custom coding that I am trying to get working in WP posts.
<?php if(get_post_meta($post->ID,'is_featured',true) {?> <h3><a href="<?php echo get_post_meta($post->ID,'listingweb',true);?>" title="<?php the_title(); ?>" target="_blank"><?php the_title(); ?></a></h3> <?php }elseif(get_post_meta($post->ID,'is_featured',false) {?> <h3><?php the_title(); ?></h3> <?php }?>
Everything looks fine, but when I upload I get a blank screen.
Whereas if I remove the else statement is works fine – so what am I doing wrong?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Help Needed’ is closed to new replies.