Inicio Forum Theme Orbit Installation and Configuration Author.php not working

Viendo 3 publicaciones - del 1 al 3 (de un total de 3)
  • Autor
    Publicaciones
  • #574

    slim
    Participant

    Hi Pedro,

    I’m having an issue with displaying “author” archive pages. Even though I completed bio and avatar, etc… author archive pages are shown as default archive pages (no additional data).

    Any idea why this is?

    edit: I’ve taken a look inside the author.php file, it seems like the author id is not specified, which is strange because the wordpress codex says that you don’t have to specify author id if you’re inside “The Loop”. However if you look how twentytwelve does it, they call the_post() before and rewind_posts() after. So if I do this:

    <?php the_post(); ?>
    <?php if ( get_the_author_meta( 'description' ) ) : ?>
     <?php echo get_avatar( get_the_author_meta( 'user_email' ) ); ?>
     <h2 class="">About <?php echo get_the_author() ; ?></h2>
     <?php the_author_meta( 'description' ); ?>
     <?php endif; ?>
    
     <?php rewind_posts(); ?>

    It works. I guess it could be classified as a bug?

    Thanks.

    #577

    Pedro Pinto
    Keymaster

    Hi slim

    Thank you very much, It’s a bug. I’m going to fix it in next release.
    If you need help customizing Orbit theme, ask me any question

    Thanks again

    #818

    Agriktag
    Participant

    Спасибо за инфу!

Viendo 3 publicaciones - del 1 al 3 (de un total de 3)

Debes estar registrado para responder a este debate.