WordPress.org

Forums

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

  1. smazsyr
    Member
    Posted 2 years 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 2 years 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

  • Author Spotlight (Widget)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.