Пример #1
0
<?php

/**
 * The template for displaying Author bios
 *
 * @package WordPress
 * @subpackage Twenty_Fifteen
 * @since Twenty Fifteen 1.0
 */
?>


<h2 class="author-heading"><?php 
printf(__('Published %s', 'render-child'), get_the_date());
?>
</h2>

<?php 
// only render the vcard if ! on author page & author != SCEWP
$user_id = get_the_author_meta('ID');
if (!is_author() && $user_id != 5) {
    $size = is_single() ? "full" : "mini";
    render_author_vcard($user_id, $size);
}
Пример #2
0
if (!empty($user_query->results)) {
    ?>
        <article <?php 
    post_class();
    ?>
>
          <div class="entry-content">
            <h1 class="entry-title">Affiliated Researchers</h1>
          </div>
          <?php 
    $size = "mini";
    foreach ($user_query->results as $user) {
        ?>
          <footer class="entry-footer">
            <?php 
        render_author_vcard($user->ID, $size);
        ?>
          </footer>
          <?php 
    }
    ?>
        </article>
      <?php 
}
?>

      <?php 
// DISPLAY THE PEOPLE PAGE CONTENT
?>
      <?php 
while (have_posts()) {