Tags template
This commit is contained in:
@@ -14,36 +14,36 @@ get_header();
|
||||
echo $wp_query->found_posts.' results matching "' . $query . '" found.';
|
||||
?>
|
||||
</h1>
|
||||
<ol class="search-results">
|
||||
<ol>
|
||||
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
|
||||
<?php $username = get_the_author_meta('nickname') ?>
|
||||
<?php $date = get_the_date('jS F, Y', $id).' at '.get_the_date('H:i', $id) ?>
|
||||
<li class="search-results__content">
|
||||
<div class="search-result">
|
||||
<div class="search-result__head">
|
||||
<div class="search-result__title">
|
||||
<li>
|
||||
<div class="excerpt">
|
||||
<div class="excerpt__head">
|
||||
<div class="excerpt__title">
|
||||
<a class="link" href="<?php the_permalink(); ?>">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-result__body">
|
||||
<div class="excerpt__body">
|
||||
<?php echo the_excerpt() ?>
|
||||
</div>
|
||||
<div class="search-result__foot">
|
||||
<p class="search-result__metadata">
|
||||
<span class="search-result__icon">
|
||||
<div class="excerpt__foot">
|
||||
<p class="excerpt__metadata">
|
||||
<span class="excerpt__icon">
|
||||
<svg class="icon icon--extra-small" aria-hidden="true">
|
||||
<use href="#icon-profile"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="search-result__text"><?php echo $username ?></span>
|
||||
<span class="search-result__icon">
|
||||
<span class="excerpt__text"><?php echo $username ?></span>
|
||||
<span class="excerpt__icon">
|
||||
<svg class="icon icon--extra-small" aria-hidden="true">
|
||||
<use href="#icon-calendar"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="search-result__text"><?php echo $date ?></span>
|
||||
<span class="excerpt__text"><?php echo $date ?></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user