저는 맞춤 검색을 위해 the_posts_pagination 또는 다른 출력 숫자 게시물 탐색을 만드는 방법을 찾으려고합니다.Wordpress 게시물 쿼리가 작동하지 않습니다.
했지만 작동하지 않는 것, 나는 아무 잘못이 사전에 제안과 솔루션 덕분에 고맙게 생각하고있는 중이 야 경우 모르겠어요
내 코드 그렇게하기 위해
<?php global $query_string; // required
$posts = query_posts($query_string.'&posts_per_page=3&order=ASC'); ?>
<div class="main-post-loop">
<div class="big-thum-section img-is-responsive">
<?php if (has_post_thumbnail()) : ?>
<?php the_post_thumbnail('small-block-thumb'); ?>
<?php endif; ?>
</div>
<div class="squiggle-post-meta-section clearfix">
<h2><a href="<?php echo get_permalink(); ?>"> <?php the_title(); ?> </a></h2>
<div class="excerpt-post"><?php the_excerpt(); ?></div>
</div>
<div class="continue-reading-section">
<a href="<?php echo get_permalink(); ?>" class="cont-reading"> Continue reading <i class="fa fa-chevron-right"></i></a>
</div>
<div class="squiggly-line"></div>
</div>
<?php
the_posts_pagination(array(
'mid_size' => 2,
'prev_text' => esc_html('←'),
'next_text' => esc_html('→'),
));
?>
<?php wp_reset_query(); // reset the query ?>
덕분에, 매김 didnt 한의 CME하지만 위로, 모든 제안을 시도했지만 아무 소용이 없음 –
@NeonEmmanuel 쿼리의 게시물 개수,'$ paged' 변수,'$ my_quer y-> max_num_pages', ... 뭔가 잘못되었는지 확인하려면,'var_dump'를 사용하여 변수를 테스트하십시오. – Amin