Пример #1
0
				<main id="main" class="site-main" role="main">
					<!-- This sets the $curauth variable -->
					<?php 
$curauth = isset($_GET['author_name']) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
?>
					<header class="page-header" id="author">
						<h1 class="page-title">Author: <?php 
echo $curauth->display_name;
?>
</h1>
						<p class="bio">
							<?php 
if (function_exists(the_author_image)) {
    ?>
								<?php 
    the_author_image();
    //img tag
    ?>
							<?php 
}
?>
							<?php 
echo $curauth->description;
?>
						</p>
					</header>
					<h3>Articles written by <?php 
echo $curauth->display_name;
?>
</h3>
					<hr>
/**
 * shortcode_callback()
 *
 * @return void
 **/
function shortcode_callback()
{
    the_author_image();
}