How to display tags with post_content
Simply use get_the_tags($my_id)
, example :
$posttags = get_the_tags($my_id);
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ' ';
}
}
Refering to WordPress codex
Simply use get_the_tags($my_id)
, example :
$posttags = get_the_tags($my_id);
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ' ';
}
}
Refering to WordPress codex