Exclude/hide specific author

Posted in: Newspaper
Post count: 29

Hey!

Is it possible to hide/exclude one specific Author from post’s?
If i dont want the admin author to show up on post’s added by admin, but still have the author box showing when other authors post.

Thanks in advice

Post count: 29

Just to make sure, it is the author box on post where “admin” is the author i want to hide.

Post count: 854

hi,
this can be done by modifying the source files of the theme.

unfortunately we do not offer custom work, so you need to hire a programmer for this task

Thanks for you message.
Radu A.

Post count: 29

Is it possible to have the function in a future release of the theme?
I saw other people requesting it too. or is it too hard to program?

Post count: 3343

Hi,
Add this code:

<?php 
if (get_the_author_meta('ID') != 1) {
    echo $td_mod_single->get_author_box();
}
?>

instead of this one: http://screencast.com/t/4gwlLozs

In the code above 1 mean posts written by the author with ID 1 will not have the author box. Change the ID from which author you want to hide the box.

Hope this help.
Thanks for your message!

Post count: 29

Hey Marius, thanks but i do not have an loop-single.php i only got loop-simple.php , how can that be ?

thanks

Post count: 29

Np, i found out Marius it was because i had not updated yet.

Testing your code :0)

Edit / works flawless!

Thank you very much, and nice update to the theme!

Post count: 3343

Hi,
Great! I’m glad that you have managed the issue.
Have a nice day!

Post count: 159

I have the same issue. Some posts don’t need an author bio under the article.
Mabye it’s possible in a future update to make a checkbox in “Post settings” to show or hide the author bio for that specific article?

Post count: 3343

Hi,
ok, @mbasche we will take a look.

Thanks!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.