これは簡単かもしれませんが、理解できません。私は自分の状況に運がなくても何時間も検索しました。my_query で動作するようにページネーションを取得する必要があります
<?php
$count = 0;
$id_suffix = 1;
$items_per_row = 4;
$quality = 90;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query = new WP_Query( array( 'posts_per_page' => '4', 'post_type' => 'portfolio') );
$grid_class = 'grid_3';
$desired_width = 220;
$desired_height = 190;
$terms = get_terms( 'portfolio_categories' );
$count_terms = count( $terms );
?>
//some php code
<?php while ( $wp_query -> have_posts()) : $wp_query -> the_post(); //query the "portfolio" custom post type for portfolio items ?>
//some more php code
<?php endwhile;?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'thematic')) ?></div>
</ul>
ページネーションを表示するようにしましたが、別のページをクリックすると、同じポートフォリオ アイテムが表示されます。どんな助けでも大歓迎です。
wp-pagenavi を使用して表示するページネーションを取得しましたが、アイテムを変更しないという同じ問題があります。