打开admin/write-post.php,找到

<p><input id="tags" name="tags" type="text" value="<?php $post->tags(',', false); ?>" class="w-100 text" /></p>

  在下面添加

<p>
<?php
$stack = Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->stack;
$i = 0;
while (isset($stack[$i])) {
    echo "<a style=\"cursor:pointer\" onclick=\"t=document.getElementById('tags').value;c=t?',':'';document.getElementById('tags').value=t+c+'", $stack[$i]['slug'], "'\">", $stack[$i]['slug'], "</a>";
    $i++;
    if (isset($stack[$i])) echo ", ";
}
?>
</p>
最后修改:2022 年 05 月 14 日
如果觉得我的文章对你有用,请随意赞赏