wp sistemlerinden hazır tema kullandım öne çıkarılmış görsel ile çıkarabiliyorum bu bayagı uzun ve sevmedigim ugraştırıcı bi özellik önceki temada özel alana ekledigimden şimdiki temaya uyum saglıyamadım
internetten buldugum yada önceki temadan ekledigimde aşagıdaki görsel gibi saçma sapan oluyor
önceki tema ile bu yeni temanın
<?php while ( have_posts() ) : the_post(); ?>
bu kod farklı oldugunu gördüm bunu degiştirince site hiç açılmıyor
internetten buldugum :
<?php $onecikan = get_post_meta($post->ID,'resim', true);
if($onecikan != "")
{ ?> <img src="<?php echo $onecikan; ?>" /> <?php }else{ ?> <?php }
?>
nasıl düzgün hale getirebilirim yardımcı olanlara şimdiden teşekkürler
<?php
/**
* @package Lens
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('col-md-4 grid lens'); ?>>
<div class="card">
<div class="featured-thumb front">
<?php if (has_post_thumbnail()) : ?>
<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_post_thumbnail('lens-thumb'); ?></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><img src="<?php echo get_template_directory_uri()."/assets/images/placeholder-lens.jpg"; ?>"></a>
<?php endif; ?>
</div><!--.featured-thumb-->
<div class="out-thumb back">
<header class="entry-header">
<h1 class="entry-title body-font"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header><!-- .entry-header -->
</div><!--.out-thumb-->
</div>
</article><!-- #post-## -->