Author box
-
Hello, my theme has author box in single post.
I want to show co authors’ boxes too.
What should i do?
author-bio.php files code is:
<?php
/**
* The template for displaying Author bios.
*
* @package Total WordPress Theme
* @subpackage Templates
* @version 3.3.0
*/// Exit if accessed directly
if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}// Get global post
global $post;// Define author bio data
$data = array(
‘post_author’ => $post->post_author,
‘avatar_size’ => apply_filters( ‘wpex_author_bio_avatar_size’, 74 ),
‘author_name’ => get_the_author(),
‘posts_url’ => get_author_posts_url( $post->post_author ),
‘description’ => get_the_author_meta( ‘description’ ),
);// Get author avatar
$data[‘avatar’] = get_avatar( get_the_author_meta( ‘user_email’ ), $data[‘avatar_size’] );// Apply filters so we can tweak the author bio output
$data = apply_filters( ‘wpex_post_author_bio_data’, $data );// Extract
extract( $data ); ?><section class=”author-bio clr”>
<?php if ( $avatar ) : ?>
<div class=”author-bio-avatar”>
” title=”<?php esc_attr_e( ‘Visit Author Page’, ‘total’ ); ?>”>
<?php
// Display author avatar
echo wpex_sanitize_data( $avatar, ‘img’ ); ?></div><!– .author-bio-avatar –>
<?php endif; ?>
<div class=”author-bio-content clr”>
<h4 class=”author-bio-title”>
” title=”<?php esc_attr_e( ‘Visit Author Page’, ‘total’ ); ?>”>
<?php echo strip_tags( $author_name ); ?></h4><!– .author-bio-title –>
<?php
// Outputs the author description if one exists
if ( $description ) : ?><div class=”author-bio-description clr”>
<?php echo wpautop( do_shortcode( wpex_sanitize_data( $description, ‘html’ ) ) ); ?>
</div><!– author-bio-description –><?php endif; ?>
<?php
// Display author social links if there are social links defined
if ( wpex_author_has_social() ) : ?><div class=”author-bio-social clr”>
<?php
// Display google plus url
if ( $url = get_the_author_meta( ‘wpex_googleplus’, $post_author ) ) : ?>
” title=”Biyografi” class=”google-plus tooltip-up”>
<span class=”fa fa-user”></span><?php endif; ?>
<?php
// Display Linkedin url
if ( $url = get_the_author_meta( ‘wpex_linkedin’, $post_author ) ) : ?>
” title=”LinkedIn” class=”linkedin tooltip-up”>
<span class=”fa fa-linkedin”></span><?php endif; ?>
<?php
// Display twitter url
if ( $url = get_the_author_meta( ‘wpex_twitter’, $post_author ) ) : ?>
” title=”Twitter” class=”twitter tooltip-up”>
<span class=”fa fa-twitter”></span><?php endif; ?>
<?php
// Display facebook url
if ( $url = get_the_author_meta( ‘wpex_facebook’, $post_author ) ) : ?>
” title=”Facebook” class=”facebook tooltip-up”>
<span class=”fa fa-facebook”></span><?php endif; ?>
<?php
// Display pinterest plus url
if ( $url = get_the_author_meta( ‘wpex_pinterest’, $post_author ) ) : ?>
” title=”Pinterest” class=”pinterest tooltip-up”>
<span class=”fa fa-pinterest”></span><?php endif; ?>
<?php
// Display instagram plus url
if ( $url = get_the_author_meta( ‘wpex_instagram’, $post_author ) ) : ?>
” title=”Instagram” class=”instagram tooltip-up”>
<span class=”fa fa-instagram”></span><?php endif; ?>
</div><!– .author-bio-social –><?php endif; ?>
</div><!– .author-bio-content –>
</section><!– .author-bio –>
- The topic ‘Author box’ is closed to new replies.