Hi, Guys!
Can anyone help me on this, I’ve been struggling with this issue. I want to add a custom post type into my author.php page but pagination is not working fine it got 404 page issue. I just want to display all the list from my CPT and make the pagination work. It works fine if you want to display the list of the author using ‘author’ => $curauth->ID, below is my code.
$args = array(
'post_type' => 'portfolio',
'posts_per_page' => 1,
'paged' => $paged
);
$wp_query = new WP_Query( $args );
I also used pre_get_posts in my functions.php but still not working.
Thanks for the help!