Site logo

Archived topic

Remove Author Link from Blog Post?

4 replies · Started by Nikola on February 9, 2020

Viewing posts 1–5 of 5

Hi,

How can I remove link and name of Author at the blog page post?

I have added this code:

add_filter( 'generate_post_author_output', function() {
    printf( ' <span class="byline">%1$s</span>',
        sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%1$s <span class="fn n author-name" itemprop="name">%4$s</span></span>',
            __( 'by','generatepress'),
            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
            esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ),
            get_the_author() ) ),
            esc_html( get_the_author() )
        ) 
    );
} );

But author link is still visible.
I flushed cashe.

Ah sorry, LINK is removed, but there is author name there.
How can I completely remote it?

This archived topic is closed to new replies.