<li><a href="http://line.naver.jp/R/msg/text/?LINE%E3%81%A7%E9%80%81%E3%82%8B%0D%0Ahttp%3A%2F%2Fline.naver.jp%2F"><img src="<?php echo get_template_directory_uri(); ?> /img/contents/linebutton_v.png" height="63" alt="LINEで送る" /></a></li> </ul> </div> <!--//.snsBtns--> <?php if (get_field('show_author_infor', get_the_id()) == 1) { ?> <aside class="relatedInfo"> <div class="pic"> <img src="<?php $author_img = get_author_image_url(get_the_author_meta('ID')); if (empty($author_img)) { $author_img = "http://www.gravatar.com/avatar.php?gravatar_id=" . md5(get_the_author_meta('email')) . "&size=120"; } echo $author_img; ?> " width=120 height=120 /> </div> <div class="txt"> <h1>by <?php the_author_posts_link(); ?> </h1> <?php echo get_the_author_meta('description'); ?>
} ?> <div class="clear"></div> <div class="mainContent" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/WebPageElement"> <section class="thinking_author_section"> <div class="inner_content"> <header> <?php //$postAuthor = $post->post_author; $user = new WP_User($author_id); if (!empty($user->roles) && is_array($user->roles) && $user->roles[0] != 'administrator') { ?> <div class="author-image"> <?php $avatar = get_author_image_url($author_id); // Replace 123 with the id of the author you want to use $html = '<img src="' . $avatar . '" alt="A Picture of ' . get_the_author_meta('display_name', $author_id) . '" class="author"/>'; echo $html; ?> </div> <div class="author-job"> <h2><?php the_author_meta('display_name', $author_id); ?> </h2> <p><?php the_author_meta('jobtitle', $author_id); ?> </p> </div>