WordPress.org

Ready to get started?Download WordPress

Forums

Author Spotlight (Widget)
[resolved] Show only if not Admin (2 posts)

  1. smazsyr
    Member
    Posted 1 year ago #

    I love this plugin. A feature a competing plugin has is to only show the widget if a post is NOT by the admin/default author. How can this be achieved with this plugin?

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

  2. Debashish
    Member
    Plugin Author

    Posted 1 year ago #

    You may try replacing the following line:

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

    with

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

    Note that I haven't tested it and the plugin doesn't support this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.