[Resolved] Post Title with Co-Author Plus

Home Forums Support Post Title with Co-Author Plus

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #126557
    Joseph

    Having an issue removing “ABOUT” from the post title on pages using the Co-Author Plus plugin, You can see here on this page or any author page:http://patronmagazine.com/author/patronadmin/

    How can I remove the “ABOUT” from the title?

    Thanks!

    FYI
    In using Co-Author Plus with the GP theme. This was added to my child function.php in order to pickup a secondary author or phoographer in this case.

    if ( ! function_exists( ‘generate_posted_on’ ) ) :
    /**
    * Prints HTML with meta information for the current post-date/time and author.
    */
    function generate_posted_on() {

    if ( ‘post’ !== get_post_type() )
    return;

    $time_string = ‘<time class=”entry-date published” datetime=”%1$s” itemprop=”datePublished”>%2$s</time>’;
    if ( get_the_time( ‘U’ ) !== get_the_modified_time( ‘U’ ) )
    $time_string .= ‘<time class=”updated” datetime=”%3$s” itemprop=”dateModified”>%4$s</time>’;

    $time_string = sprintf( $time_string,
    esc_attr( get_the_date( ‘c’ ) ),
    esc_html( get_the_date() ),
    esc_attr( get_the_modified_date( ‘c’ ) ),
    esc_html( get_the_modified_date() )
    );
    if ( function_exists( ‘coauthors_posts_links’ ) ) :
    printf( __( ‘<span class=”posted-on”>%1$s</span> <span class=”byline”>%2$s</span>’, ‘generate’ ),
    sprintf( ‘%3$s‘,
    esc_url( get_permalink() ),
    esc_attr( get_the_time() ),
    $time_string
    ),
    coauthors_posts_links( null, null, null, null, false )
    );
    else :
    printf( __( ‘<span class=”posted-on”>%1$s</span> <span class=”byline”>%2$s</span>’, ‘generate’ ),
    sprintf( ‘%3$s‘,
    esc_url( get_permalink() ),
    esc_attr( get_the_time() ),
    $time_string
    ),
    sprintf( ‘<span class=”author vcard” itemtype=”http://schema.org/Person&#8221; itemscope=”itemscope” itemprop=”author”>%1$s <span class=”author-name” itemprop=”name”>%4$s</span></span>’,
    __( ‘by’,’generate’),
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    esc_attr( sprintf( __( ‘View all posts by %s’, ‘generate’ ), get_the_author() ) ),
    esc_html( get_the_author() )
    )
    );
    endif;
    }
    endif;

    #126642
    Tom
    Lead Developer
    Lead Developer

    To do this, you’ll have to use a child theme.

    1. Copy archive.php from GP into your child theme.

    2. Open the child theme version of archive.php, and remove “About” from line 33.

    That should do it 🙂

    #126725
    Joseph

    Tom, that worked, you’re the greatest, time to tweet about GP!!!

    #126840
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.