WordPress.org

Support

Support » How-To and Troubleshooting » Condition not working

Condition not working

  • <?php if (get_option('dailynotes_thumbnails') == 'on' && $thumb <> '') : ?>
    
    <?php print_thumbnail($arr[$j]["thumb"], $arr[$j]["use_timthumb"], $arr[$j]['title'] , 149, 125, '', $post = $arr[$j]["post"]); ?>
    
    <?php else : ?>
    
    <h2><?php echo($arr[$j]['title']); ?></h2>
    
    <?php endif; ?>

    It is out putting the thumbnail no matter what.. i need it to only show the title is there is no thumbnail.. any help ?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Condition not working’ is closed to new replies.
Skip to toolbar