Archived topic
How to link to different 'about' pages for different authors?
5 replies · Started by Jay on December 23, 2019
I found this post a few months ago which contained this code for changing the author link to a custom 'about' page:
add_filter( 'author_link', 'my_author_link' );
function my_author_link() {
return home_url( '/about/' );
}
This worked perfectly, but now my site is about to have additional authors for the first time, so I need to do this same thing but with a different 'about' page for each different author.
Any help would be greatly appreciated. Thanks!
Hi there,
this topic should help:
https://generatepress.com/forums/topic/change-author-url/#post-1023639
Perfect, thanks!
You're welcome
Hi David,
I just tried the above, but it does not work.
Did something change in the code since 2019?
Thanks!
Any chance you can open a new topic and link us to the page in question and maybe the requirement as well?
I wonder if we could use dynamic stuff in GPP 2.0 now.
Thanks!