Hide Author Box in some post

Posted in: Newsmag
Post count: 18

Hi! I was searching for the solution or the best way to do that.

I found in the Nwespaper forum a user that solve this problem using this code in loop_single.php


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

This is the post link: Post

Is there a way to do this in Newsmag?

I just want to hide the Author Box in post written by a specific author.

Thank you very much for your help!

Post count: 6535

Hi

To hide the author box in post written by a specific author add the above code in loop-single.php file like here: http://screencast.com/t/vNH7beF39oZ and replace the author id number with the one you want to exclude.
To get the author id follow this link: http://screencast.com/t/g8CdLnLvX

Let me know how it goes!

Thanks!

Post count: 18

Hi Andrei! I did it, but still not working.

Capture

Am i missing something?

Thank you!

Post count: 6535

Hi

You need to insert your author ID in the code http://screencast.com/t/dQQdtdtFCbG and I indicated above how to obtain it.

Thanks!

Post count: 18

Hi Andrei, thank you for your response.

Maybe I don’t understand something. 6 is already the ID. I’m doing it okei?

This is the code I’m using, when ‘6’ is the ID for the user Ge2k.

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

Thanks again!

Post count: 18

Hi Andrei. Finally it’s working for almost every article. (still showing in some others, I don’t know why, but I will figure it out).

Thank you very much for your help!

Regards,
Juan!

Post count: 6535

Hi

Glad it works, thanks for the message!

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