(1. div'de 2 yazı, 2. div'de ise 3 yazı olacak şekilde döngüye almak istiyorum)
Şimdiden yardımcı olacak arkadaşlara teşekkür ederim.


7
●113


<?php
$args = array(
'paged' => '1',
'posts_per_page' => '2',
);
$query_post_anasayfa = new WP_Query( $args );
if ( $query_post_anasayfa->have_posts() ) {
while ( $query_post_anasayfa->have_posts() ) {
$query_post_anasayfa->the_post();
?><div class="col-xl-6 col-lg-6 col-md-12 col-12 col-sm-12 mb-6 d-flex align-items-stretch">
<div class="card w-100">
<div class="embed-responsive embed-responsive-16by9">
<div class="embed-responsive-item">
<div class="card-img-overlay pointer-none1">
<h4><span class="badge badge-dark float-right pointer-auto2"><?php the_field('test_kategorisi'); ?></a></span></h4>
</div>
<a href="<?php the_permalink(); ?>"><img class="img-fluid w-100 h-100" <?php the_post_thumbnail('buyuk-thumb'); ?></img></a>
</div>
</div>
<div class="card-body">
<h5 class="card-title"><a href="<?php the_permalink(); ?>" class="link-type2"><?php the_title(); ?></a></h5>
</div>
</div>
</div> }
} else {
}
wp_reset_postdata(); ?>Bu şekilde döngüye aldığım zaman istediğim sonucu elde edebiliyorum. Fakat bu seferde sayfalamada sorun yaşıyorum. Pagination çalışmıyor. 
İstediğim gibi döngüye sokamadım.