此代码显示特定类别(如id=3)中的标记。我想自动检查我属于哪个类别。谁能帮帮我吗?
$args = array(\'categories\'=> \'3\');
$tags = get_category_tags($args);
$content .= "<ul>";
foreach ($tags as $tag) {
$content .= "<li><a href=\\"$tag->tag_link\\">$tag->tag_name</a></li>";
}
$content .= "</ul>";
echo $content;