' ); } function aab_contactmethods( $contactmethods ) { unset($contactmethods['jabber']); unset($contactmethods['yim']); unset($contactmethods['aim']); $contactmethods['websitename'] = 'Website Title'; $contactmethods['googleplus'] = 'Google+ Profile'; $contactmethods['linkedin'] = 'LinkedIn Profile'; $contactmethods['twitter'] = 'Twitter Profile'; $contactmethods['facebook'] = 'Facebook Profile'; $contactmethods['pinterest'] = 'Pinterest Profile'; $contactmethods['youtube'] = 'YouTube Profile'; $contactmethods['flickr'] = 'Flickr Profile'; $contactmethods['yahoo'] = 'Yahoo Profile'; $contactmethods['stumble'] = 'StumbleUpon Profile'; return $contactmethods; } function aab_author_meta($content){ global $post; $email = get_the_author_meta('email'); $default = WP_PLUGIN_URL . '/advanced-author-bio/images/default.png'; $size = 70; $grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; $aab_author = array(); $aab_author['name'] = get_the_author(); $aab_author['numberofposts'] = number_format_i18n(get_the_author_posts()); $aab_author['authorpage'] = get_author_posts_url(get_the_author_meta( 'ID' )); $aab_author['description'] = get_the_author_meta('description'); $aab_author['twitter'] = get_the_author_meta('twitter'); $aab_author['facebook'] = get_the_author_meta('facebook'); $aab_author['googleplus'] = get_the_author_meta('googleplus'); $aab_author['linkedin'] = get_the_author_meta('linkedin'); $aab_author['website'] = get_the_author_meta('url'); $aab_author['gravatar'] = get_avatar(get_the_author_meta('email'), '50'); $aab_author['websitename'] = get_the_author_meta('websitename'); $aab_author['firstname'] = get_the_author_meta('first_name'); $aab_author['youtube'] = get_the_author_meta('youtube'); $aab_author['flickr'] = get_the_author_meta('flickr'); $aab_author['pinterest'] = get_the_author_meta('pinterest'); $aab_author['yahoo'] = get_the_author_meta('yahoo'); $aab_author['stumble'] = get_the_author_meta('stumble'); if(!is_feed() && !is_home() && !is_404() && !is_archive() && !is_page() && !is_category()) { $content .='
'; } return $content; } remove_filter('pre_user_description', 'wp_filter_kses'); add_filter( 'pre_user_description', 'wp_filter_post_kses' ); add_filter('user_contactmethods','aab_contactmethods',10,1); add_action('wp_head', 'aab_style'); add_filter ('the_content', 'aab_author_meta'); ?>