single lightbox

This commit is contained in:
2019-07-03 23:20:48 +02:00
parent d59b9afadf
commit 5f461d3ea2
14 changed files with 653 additions and 219 deletions

View File

@@ -32,7 +32,7 @@
<div class="format">
<?php
$terms = get_the_terms( $post->ID, 'Format' );
if ($terms) {
if ($terms && ! is_wp_error( $terms )) {
foreach($terms as $term) {
echo $term->name;
}
@@ -50,6 +50,23 @@
<div class="single-content">
<hr class="content-wrap content-begin">
<?php the_content(); // Dynamic Content ?>
<?php
$terms = get_the_terms( $post->ID, 'Writer' );
if ($terms && ! is_wp_error( $terms )) {
?>
<p class="authors">Szerző:
<?php
foreach($terms as $term) {
?>
<a href="<?php echo esc_url(get_term_link( $term));?>">
<?php echo $term->name; ?>
</a>
<?php
}
echo '<p>';
} ?>
<hr class="content-wrap content-end">
</div>