Skip to content

Commit

Permalink
Moved tags below the output examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Feb 19, 2023
1 parent 6f9b33d commit e441b67
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,22 +184,7 @@
</li>
<?php } ?>
</ul>
<?php the_content(); ?>
<p class="post-tags mt-5 mb-2">
<?php
$tags = get_the_tags();
$tags_array = array();

if ( $tags ){
foreach ( $tags as $tag ) {
$tags_array[] = '<a href="' . $site_url . '/bot/?tags=' . $tag->slug . '">' . $tag->slug . '</a> ';
}
}

echo join( ' ', $tags_array );
// the_tags( '', ' ', '<br>' );
?>
</p>
<?php the_content(); ?>
</div>
<div class="col-sm-12 col-md-3 col-lg-2 mb-4 sidebar">
<h3 class="sidebar-header">Networks</h3>
Expand Down Expand Up @@ -296,9 +281,22 @@ function get_network_name( $network ){
</div>
<?php } ?>
</div>
<?php }
<?php } ?>
<p class="post-tags mt-0 mb-2">
<?php
$tags = get_the_tags();
$tags_array = array();

if ( $tags ){
foreach ( $tags as $tag ) {
$tags_array[] = '<a href="' . $site_url . '/bot/?tags=' . $tag->slug . '">' . $tag->slug . '</a> ';
}
}

echo join( ' ', $tags_array );
// the_tags( '', ' ', '<br>' );
?>
</p>
</div>
<?php if ( count( $bot_source_urls ) > 1 ){
global $helpers;
Expand Down

0 comments on commit e441b67

Please sign in to comment.