Redirect WordPress Author Archive to BuddyPress Profile

Need to redirect from users's WordPress post archive page to their BuddyPress profile? It's easy.

You can put the following code into bp-custom.php or in your theme's functions.php

You can even redirect to specific user profile tab(component). For example, we can redirect to the view profile page by changing $redirect_url to

or you can even hard code to specific url like

I will suggest to avoid hard coding the tab slug as they can be changed by different constants.

Feel free to extend and have fun!

Comments are closed.