October 13

Show author bio for non-admins and selected users

Using this code, you can tell WordPress to only add the bio if the author of the post does not match the user ID.

<?php if (the_author_meta('ID') != 1) {   ?>
  Display your author information here.
  <?php   } ?>

In the example above, the author ID to ‘filter out’ is ‘1’ which is typically the first user, the admin. But you can replace this number with any author’s ID you want to filter out.


Tags


You may also like

Force cPanel Password Reset

Force cPanel Password Reset
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Get in touch

Name*
Email*
Message
0 of 350