WordPress.org

Ready to get started?Download WordPress

Forums

Fancier Author Box by ThematoSoup
[resolved] Selectively Disable FAB (8 posts)

  1. rocipo
    Member
    Posted 1 year ago #

    How can I remove the box from JUST my front page? (Alternatively, can I use a shortcode in other areas?)
    Actually, if you have the time/inclination to answer both questions, I'd be tickled.
    Otherwise, very nice plugin.

    -r

    http://wordpress.org/extend/plugins/fancier-author-box/

  2. Dragan Nikolic
    Member
    Plugin Author

    Posted 1 year ago #

    What's your URL?

    Author box should not be display on your front page and shortcode is only available in the premium version.

  3. kmtharakan
    Member
    Posted 1 year ago #

    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.)

  4. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Kristof
    Member
    Posted 1 year ago #

    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!

  6. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    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' );
    }
  7. Kristof
    Member
    Posted 1 year ago #

    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' );
    }

  8. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    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 );
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.