'Ataa_Widget', 'description' => __( "Displays information about the author of a post/page." )); $this->WP_Widget( 'author_contact_info', __( 'About the Author' ), $widget_ops); } function form( $instance ){ global $wpdb; $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'exclude' => '', 'displayOn' => 1 ) ); ?>


Page IDs, separated by commas.

post->ID; $theAuthorID = $wp_query->post->post_author; //Get options $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']); $exclude_list = empty($instance['exclude']) ? ' ' : apply_filters('widget_title', $instance['exclude']); $excluded = explode(',', $exclude_list); //convert list of excluded pages to array if ( in_array($thePostID,$excluded) || is_home() ) return false; //don't show widget if page is excluded if ( is_numeric($theAuthorID) && user_can( $theAuthorID, 'administrator' ) && !$options['display_admin']) return false; if( (is_single() && ($instance['displayOn'] == 2)) || (is_page() && ($instance['displayOn'] == 3 ))) return false; if(is_numeric($theAuthorID)){ echo $before_widget; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; echo ''; echo $after_widget; } } } ?>