1.16.1
- update media template title - use theme pagination in other templates - add tag cloud to tag archive pages (hide less popular tags via css)
This commit is contained in:
parent
1c48cb39f6
commit
d44ada0fe0
4 changed files with 40 additions and 4 deletions
|
@ -34,7 +34,7 @@ get_header();
|
|||
endwhile;
|
||||
|
||||
// Previous/next page navigation.
|
||||
twentynineteen_the_posts_navigation();
|
||||
echo wasmo_pagination();
|
||||
|
||||
// If no content, include the "No posts found" template.
|
||||
else :
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Author: Evan Mullins
|
||||
Author URI: https://circlecube.com
|
||||
Template: twentynineteen
|
||||
Version: 1.16.0
|
||||
Version: 1.16.1
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: wasmo
|
||||
|
@ -1501,4 +1501,11 @@ figure.wp-block-image.aligncenter img {
|
|||
.entry-content ul.blog-posts-archive li > a,
|
||||
.entry-content ul.questions li > a {
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
.archive .entry-footer .tags .tag[data-count="1"],
|
||||
.archive .entry-footer .tags .tag[data-count="2"],
|
||||
.archive .entry-footer .tags .tag[data-count="3"],
|
||||
.archive .entry-footer .tags .tag[data-count="4"] {
|
||||
display: none;
|
||||
}
|
31
tag.php
31
tag.php
|
@ -43,7 +43,7 @@ $term = get_term_by( 'id', $termid, 'tags' );
|
|||
endwhile;
|
||||
|
||||
// Previous/next page navigation.
|
||||
twentynineteen_the_posts_navigation();
|
||||
echo wasmo_pagination();
|
||||
|
||||
// If no content, include the "No posts found" template.
|
||||
else :
|
||||
|
@ -51,6 +51,35 @@ $term = get_term_by( 'id', $termid, 'tags' );
|
|||
|
||||
endif;
|
||||
?>
|
||||
<footer class="entry-footer">
|
||||
<h3>
|
||||
<?php echo wasmo_get_icon_svg( 'tag', 24, 'style="margin-top:-3px;margin-right:0;"' ); ?>
|
||||
Tags:
|
||||
</h3>
|
||||
<ul class="tags">
|
||||
<?php
|
||||
$terms = get_terms([
|
||||
'taxonomy' => 'post_tag',
|
||||
'hide_empty' => true,
|
||||
'orderby' => 'name',
|
||||
'order' => 'ASC',
|
||||
'count' => true,
|
||||
]);
|
||||
foreach ( $terms as $term ) :
|
||||
?>
|
||||
<li>
|
||||
<a
|
||||
class="tag"
|
||||
href="<?php echo get_term_link( $term ); ?>"
|
||||
data-id="<?php echo esc_attr( $term->term_id ); ?>"
|
||||
data-count="<?php echo esc_attr( $term->count ); ?>"
|
||||
>
|
||||
<?php echo $term->name; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</footer>
|
||||
</main><!-- #main -->
|
||||
</section><!-- #primary -->
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ get_header();
|
|||
|
||||
|
||||
<header class="page-header">
|
||||
<?php the_title(); ?>
|
||||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue