Codex のタグ用タグを見ても, タグ未指定時の表示やパラメータがなさそうでした. 見落としてるのかもしれませんが, 以下のように書いて対応しました.
<?php
$tag = get_the_tags();
if ($tag == null) {
print "no tags";
} else {
the_tags();
}
?>
Codex のタグ用タグを見ても, タグ未指定時の表示やパラメータがなさそうでした. 見落としてるのかもしれませんが, 以下のように書いて対応しました.
<?php
$tag = get_the_tags();
if ($tag == null) {
print "no tags";
} else {
the_tags();
}
?>