WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to remove "the_author_posts_link" for select Authors only?

[Resolved] How to remove "the_author_posts_link" for select Authors only?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator keesiemeijer

    @keesiemeijer

    On single post pages (single.php) you can do this:

    <?php
    // 12 is the author id
    if ( $post->post_author == 12 ) {
    	the_author();
    } else {
    	the_author_posts_link();
    }
    ?>

    Thanks a ton keesiemeijer. Its done.

    Have a great day…
    God bless… 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to remove "the_author_posts_link" for select Authors only?’ is closed to new replies.