single lightbox
This commit is contained in:
19
single.php
19
single.php
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user