I’m trying to implement the pagination in wordpress for a few hours now. The navigation of the pagination is displayed and the post-transfer from the database also works. But from page two on, they aren’t visible in the loop.
Here is the code:
paged = ($permalink) ? $permalink : 0; $query = new WP_Query( 'cat='.$catObj->cat_ID.'&posts_per_page=10&paged='.$paged ); if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();
Where is the mastake?
- The topic ‘WP_Query loop doesn't show posts with pagination’ is closed to new replies.