• Resolved Bookends

    (@bookends)


    Hello,

    I am just wondering if there is a simple way to have the author box appear on some posts/selected authors but not on others.

    For example – I have an ‘admin’ account that I may wish to post something through, or an author who doesn’t wish to have a profile. How do I remove the bio box on their posts, but retain it for other authors.

    https://wordpress.org/plugins/author-bio-box/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    Disables the “Display in” option of the plugin and the function:

    <?php
        if ( function_exists( 'get_author_bio_box' ) ) {
            echo get_author_bio_box();
        }
    ?>
    

    You can use this function to display and thus use your logic to make it appear or not.

    Could you clarify what you mean by use logic, could you be more specific? Any help would be great!

    @digitalfuse,

    I published a Gist that alters the display of the Author Bio Box for blog posts only. I am using the filter provided by the plugin to apply conditional logic to turn off the display on any page that is not of post_type ‘post’. Have a look, I hope it helps.

    https://gist.github.com/rumspeed/b5e6ba185628cd4ae24b

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Author Box appear on selected posts’ is closed to new replies.