I want to use If, If else and else on wordpress homepage, i am using following condition
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
}?>
<?php if else {
<img src="<?php echo catch_that_image() ?>" width="64" height="64" alt="<?php the_title(); ?>" />
} else {
<img src="http://www.technoarea.in/wp-content/themes/TA/images/TA_Logo.png" width="64" height="64" alt="<?php the_title(); ?>" />}
?>
<?php ?>
I want to show thumbnail first on homepage, if thumbnail is not available then it must use first image from post as thumbnail and if there is no image in post then it use this image
http://www.technoarea.in/wp-content/themes/TA/images/TA_Logo.png
can you please tell me where i am wrong because the above code is not working
}else if (CONDITION) { ... }else{ ... }2. missing closing}bracket at end