Remove author link
-
I have the following on my template (I’m making a child theme based on boilerplate)
<?php printf( __( 'Author Archives: %s', 'boilerplate' ), "<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>" ); ?>Which returns “Author Archive: Linked Author name”
I’d like it to return the author name without a link. It’s the title of the author’s archive page so its linking to itself, which is redundant.
Unfortunately I don’t know php so I don’t know the proper format when removing the link.
-
You are in the wrong forum and need to be at WordPress.org for answers with that version of the software.
- The topic ‘Remove author link’ is closed to new replies.