• Resolved Anonymous User 17976131

    (@anonymized-17976131)


    Is there any way to disable author archives but still have the author name appear on posts where functions like the_author_posts_link are called?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author freemp

    (@freemp)

    You might want to try adding the following line of code in your theme’s functions.php.

    add_filter( 'the_author_posts_link', function() { return get_the_author(); }, PHP_INT_MAX );
    Thread Starter Anonymous User 17976131

    (@anonymized-17976131)

    Brilliant thanks.

    Plugin Author freemp

    (@freemp)

    I’ve been thinking more about your original question. Actually, there is no reason why the plugin should suppress the author’s name, as its only purpose is to remove links to the author archive. I think I will soon publish another update which would render the line of code from previous post obsolete…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suppresses author name on posts, too?’ is closed to new replies.