add files
This commit is contained in:
17
template-parts/micro/terms.php
Normal file
17
template-parts/micro/terms.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!--[micro/terms]-->
|
||||
|
||||
<div class="d-none">
|
||||
|
||||
<?php foreach (wp_get_post_terms( get_the_ID(), ["category", "post_tag"] ) as $term) : ?>
|
||||
|
||||
<span itemprop="articleSection">
|
||||
|
||||
<?= $term->name ?>
|
||||
|
||||
</span>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!--[/micro/terms]-->
|
||||
Reference in New Issue
Block a user