WordPress.org

Ready to get started?Download WordPress

Forums

Author Spotlight (Widget)
[resolved] Selectively Hide Author Information (3 posts)

  1. jelie
    Member
    Posted 1 year ago #

    I have a need to hide the author information on some posts. The easiest way I see that is a box that if checked would display and/or hide the author bio. Another way would be to create a category and modify the plugin to display or hide based on the category selection (if HideAuthor category was selected for instance).

    However, I'm not entirely sure how to affect this change. I've tried changing this

    if(!$isHome && (is_single() || is_page()) && $authordata->ID){

    but anywhere I add the is_category('40') option either causes the plugin to not display on any post, or it continues to display on every post. I think I am missing something simple in the syntax, I just don't know what. :(

    http://wordpress.org/extend/plugins/author-profile/

  2. Shadician
    Member
    Posted 1 year ago #

    I used the Show/Hide Author plugin which let me always hide the author, then I also used the Plugin Organiser plugin to disable Show/Hide Author plugin on specific posts and pages. Bit of a roundabout way to do it but it worked!

  3. Debashish
    Member
    Plugin Author

    Posted 11 months ago #

    The plugin currently doesn't support this, I might consider adding the feature in future.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.