0

I want all the author links on my blog page to go to a specific url ("/about") instead of the individual author pages.

I know this can be done easily with JavaScript, but is there way to do it in functions.php?

1 Answer 1

2

did you try:

function wpse_author_link( $link, $author_id, $author_nicename ){
    return 'http://example.com/';
}
add_filter( 'author_link', 'wpse_author_link', 20, 3 );
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.