Author's page with pagination (2 posts)

  1. Bloody
    Posted 4 years 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.

  2. Bloody
    Posted 4 years ago #

    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.]

Topic Closed

This topic has been closed to new replies.

About this Topic