What’s your URL?
Author box should not be display on your front page and shortcode is only available in the premium version.
Can you disable on selected posts? E.g. I sometimes put up a Guest Post by another author, and obviously I don’t want my bio showing up under their post. (They are not a user on my site, I’ve placed the post for them.)
Hi,
I just updated the plugin, now there’s an option to disable the author box in individual posts/pages by using ‘ts_fab_hide’ custom field (with any value). You should be able to upgrade the plugin through WordPress dashboard at some point today.
Love the plugin – really nice! And like that it can be removed from specific pages/posts.
Is there a way to disable it for an entire category ID – say, by adding line of code to template? I have hundreds of posts where I don’t want the box to display and disabling individually is pretty much out of the question.
Thanks!
Hi, really glad you like the plugin!
Haven’t tested this, but I think you should be able to disable it in certain categories by doing something like this (add it to functions.php):
if ( in_category ( 'my-category' ) ) {
remove_filter( 'the_content', 'ts_fab_add_author_box' );
}
Thanks for the quick response. But doesn’t seem to be working. I tired using both cat ID number and cat ID name. I also tried adding it directly to the template.
I need to disable it from multiple categories so I also tried;
if ( in_category ( array ( ‘146,10,136,65,172,133,57,144’ ) ) ) {
remove_filter( ‘the_content’, ‘ts_fab_add_author_box’ );
}
OK, got a chance to try this out, and turns out it works if added to your single post template. This is the exact code I used, and it worked:
if ( in_category ( 'Cat A' ) ) {
remove_filter( 'the_content', 'ts_fab_add_author_box', 10 );
}