ShalvaSoftმაგდენი რომ ვიცოდე

ეხლა მაქვს ეს კოდი.
<?php if( get_post_meta($post->ID, "foto", true) ): ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, 'foto',true); ?>" rel="nofollow" width="196" height="110" title="<?php the_title(); ?>"/></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php
$video = new youtube_video();
echo $thumbnail = $video->thumb('default');
?>" rel="nofollow" width="196" height="110" title="<?php the_title(); ?>"/></a>
<?php endif; ?>
მინდა ასე:
<?php if( get_post_meta($post->ID, "foto", true) ): ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, 'foto',true); ?>" rel="nofollow" width="196" height="110" title="<?php the_title(); ?>"/></a>
<?php elseif (აქ არ ვიცი რა ჩავწერო) : ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php
$video = new youtube_video();
echo $thumbnail = $video->thumb('default');
?>" rel="nofollow" width="196" height="110" title="<?php the_title(); ?>"/></a>
<?php else : ?>
<?php get_the_image( array( 'size' => 'thumbnail', 'width' => 228, 'height' => 160, 'before' => '<div class="cover">', 'after' => '</div>' ) ); ?>
<?php endif; ?>
ეს თუ ვერ გავასწორე ნახევარი ფოტოები არ ჩანს საიტზე.