Support » Theme: Portfolio Press » Only the latest post when I clic on "author"

  • Resolved Tabathaf

    (@tabathaf)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only the latest post when I clic on "author"’ is closed to new replies.