[Support request] How could I build the author.page

Home Forums Support [Support request] How could I build the author.page

Home Forums Support How could I build the author.page

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1218804
    luisjavier

    Hi,
    How could I build the author.page since the theme doesn’t bring it by default
    Thank you

    #1218859
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this post offers some info:
    https://generatepress.com/forums/topic/custom-author-archive-pages/

    #1219378
    luisjavier

    Thank you for the quick response
    My problem is that I don’t know exactly where or how to add this code:
    ——–
    add_filter( ‘generate_post_author_output’, function() {
    printf( ‘ <span class=”byline”>%1$s</span>’,
    sprintf( ‘<span class=”author vcard” %5$s>%1$s <span class=”author-name” itemprop=”name”>%4$s</span></span>’,
    __( ‘by’, ‘generaadd_filter( ‘generate_post_author_output’, function() {
    printf( ‘ <span class=”byline”>%1$s</span>’,
    sprintf( ‘<span class=”author vcard” %5$s>%1$s <span class=”author-name” itemprop=”name”>%4$s</span></span>’,
    __( ‘by’, ‘generatepress’ ),
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    /* translators: 1: Author name */
    esc_attr( sprintf( __( ‘View all posts by %s’, ‘generatepress’ ), get_the_author() ) ),
    esc_html( get_the_author() ),
    generate_get_microdata( ‘post-author’ )
    )
    );
    } );tepress’ ),
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    /* translators: 1: Author name */
    esc_attr( sprintf( __( ‘View all posts by %s’, ‘generatepress’ ), get_the_author() ) ),
    esc_html( get_the_author() ),
    generate_get_microdata( ‘post-author’ )
    )
    );
    } );
    ————
    Referred to in:

    June 6, 2019 at 3:13 am
    #921376
    culpable
    Hiya GP Support,
    Thanks

    #1219779
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.