السلام عليكم
جرب هدا الكود أحسن لك من الاضافات
أتمنى أن تعجبك الفكرة
\[code\]
<a href=""<?php">" rel="bookmark" alt="<?php the\_title\_attribute(); ?>" title="<?php the\_title\_attribute(); ?>">
<?php if ( has\_post\_thumbnail() ) {
the\_post\_thumbnail();
}
elseif( get\_post\_meta($post->ID, "post-image", $single = true)!="") { ?>
<?php $post\_image = get\_post\_meta($post->ID, "post-image",true); ?> <img src=""<?php" />" width="64" height="64" alt="<?php the\_title\_attribute(); ?>" />
<?php } elseif( get\_post\_meta($post->ID, "youtube", $single = true)!="") { ?>
<?php $post\_image = get\_post\_meta($post->ID, "youtube",true); ?> <img src="//img.youtube.com/vi/<?php" />/0.jpg" rel="nofollow" alt="<?php the\_title\_attribute(); ?>" />
<?php } else { ?>
<img src=""<?php" />/img/logo.png" alt="<?php the\_title\_attribute(); ?>" />
<?php } ?>
</a>
\[/code\]