WordPress.org

Ready to get started?Download WordPress

Forums

Portfolio Press
[resolved] Only the latest post when I clic on "author" (5 posts)

  1. Tabathaf
    Member
    Posted 1 year ago #

    Hi,

    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 :

    <?php
    /**
     * The template for displaying author pages
     *
     * @package Portfolio Press
     */
    
    get_header(); ?>
    
    	<div id="primary">
    		<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.

  2. Tabathaf
    Member
    Posted 1 year ago #

    (By the way, this theme is exactly what I needed, then a big THANK to the creator)

  3. Devin Price
    Member
    Theme Author

    Posted 1 year ago #

    I'll look into it. Created an issue on GitHub:
    https://github.com/devinsays/portfolio-press/issues/29

  4. Devin Price
    Member
    Theme Author

    Posted 1 year ago #

  5. Tabathaf
    Member
    Posted 1 year ago #

    Thank you, it seems that's working !

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic