Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- wp_reset_postdata();
- //get post settings
- $ot_post = composs()->posts;
- //post tags
- $posttags = get_the_tags();
- $tagCount = count($posttags);
- ?>
- <?php if( $posttags && $ot_post->compare( get_the_ID(), 'post_tag_single','post_tag' ) == "1" ) { ?>
- <div class="composs-tag-list">
- <?php
- $i = 1;
- foreach($posttags as $tag) {
- echo '<a href="'.esc_url(get_tag_link($tag->term_id)).'">'.$tag->name . '</a>';
- //if($tagCount!=$i) { echo ", "; }
- $i++;
- }
- ?>
- </div>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment