ap_tag_details()

Description #

Display tag details.

Source #

File: includes/taxo.php

function ap_tag_details() {
	$var = get_query_var( 'question_tag' );

	$tag = get_term_by( 'slug', $var, 'question_tag' );

	echo '<div class="clearfix">';
	echo '<h3><a href="' . esc_url( get_tag_link( $tag ) ) . '">' . esc_html( $tag->name ) . '</a></h3>';
	echo '<div class="ap-taxo-meta">';
	echo '<span class="count">' . (int) $tag->count . ' ' . esc_attr__( 'Questions', 'anspress-question-answer' ) . '</span>';
	echo '<a class="aicon-rss feed-link" href="' . esc_url( get_term_feed_link( $tag->term_id, 'question_tag' ) ) . '" title="Subscribe to ' . esc_attr( $tag->name ) . '" rel="nofollow"></a>';
	echo '</div>';
	echo '</div>';

	echo '<p class="desc clearfix">' . wp_kses_post( $tag->description ) . '</p>';
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment