nette ilk kategori olayı

<div class=”nette-ilk”>
<span class=”head red”>Nette İlk</span>
<div class=”ni-container”>
<ul>
<?php

$args = array(
‘posts_per_page’ => ‘8’,
‘meta_key’ => ‘nette_ilk’,
‘meta_value’ => ‘true’,
‘order’ => ‘desc’,
‘paged’ => 1
);

$query = new WP_Query( $args );
if ( $query->have_posts() ):
while ( $query->have_posts() ):
$query->the_post();
?>
<li>
<a href=”<? the_permalink()?>”>
<img src=”<?=get_the_post_thumbnail_url()?>”>
<h3><? the_title()?></h3>
</a>
</li>
<?php endwhile; wp_reset_postdata(); ?>
<?php endif; ?>
</ul>
</div>

</di

Bir cevap yazın

E-posta hesabınız yayımlanmayacak.