Support » Theme: Portfolio Press » Only the latest post when I clic on "author"
4 years, 2 months ago
When I want to see all the portefolio items by author (or all posts anytype), I have only one post : the latest.
On my editor the page author.php is like that :
* The template for displaying author pages
* @package Portfolio Press
<div id="content" role="main">
<?php the_post(); ?>
<h2 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'portfoliopress' ), "<a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h2>
<?php rewind_posts(); ?>
<?php get_template_part( 'content', 'author' ); ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
I think the loop is missing but I don’t know how to add it.
Can you help me ?
Thank you 🙂
Tabatha, french girl.
(By the way, this theme is exactly what I needed, then a big THANK to the creator)
I’ll look into it. Created an issue on GitHub:
It has been updated. Thanks for reporting the issue:
4 years, 1 month ago
Thank you, it seems that’s working !