Support » How-To and Troubleshooting » Author's page with pagination
4 years, 6 months ago
On the page for each author, I list the items (CPT) that the author has post. I want to add a pagination based on the value entered in backend.
Pagination is well established but the links on the following pages return to the index page.
Here is my code :
[code moderated – the limit for posting in the forum is 10 lines – for any code over that limit, use the pastebin]
Can you solve my problem? In advance thank you for your answers.
Here’s the code
<?php global $paged;
query_posts( array( 'post_type' => 'galerie', 'author' => $curauth->ID, 'paged' => $paged ) );
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
<?php endwhile; else: ?>
<?php endif; ?>
[No bumping, thank you.]