I am developing a theme for myself and I was wondering why wordpress tags are allways displayed bellow the_content.
I know that this can be done via shortcode, but I would like to know if this is for seo purposes, or there is any technical reason?
I´am asking because I didn´t find any information on the web...
My code:
in functions.php (found in here)
function tags_in_post($atts) { // [tags] outputs post's tags in a span
global $post;
$tags = '<span class="post-tags">';
ob_start();
the_tags( '<span class="post-tags">', ', ', '</span>' );
$tags = ob_get_contents();
ob_end_clean();
return $tags;
}
add_shortcode ('tags', 'tags_in_post');
Than this shorttag [tags] must be used inside the wordpress editor.
Thanks