• Hi all.

    There are 3 authors in our company blog, each author has own site url in profile:

    Mike - http://mike.com
    Gelens - http://gelens.com
    Admin - http://site.com/company/

    the links for profiles are:

    http://site.com/author/Mike/
    http://site.com/author/Gelens/
    http://site.com/author/Admin/

    I need to replace a link to Admin’s page, so, if there is <?php the_author_posts_link(); ?> tag on some page, and the author is Admin, the link must be http://site.com/company/ instead of http://site.com/author/Admin/.

    How can I do that?

Viewing 1 replies (of 1 total)
  • Please use <?php the_author_link(); ?> instead of <?php the_author_posts_link(); ?>
    It gives author’s url in profile.

Viewing 1 replies (of 1 total)

The topic ‘Replace author url with different one’ is closed to new replies.