如何向函数中添加一个类,以便将输出标记样式设置为css中的方框?
<?php
if(get_the_tag_list()) {
echo get_the_tag_list(\'<ul><li>\',\'</li><li>\',\'</li></ul>\');
}
?>
如何向函数中添加一个类,以便将输出标记样式设置为css中的方框?
<?php
if(get_the_tag_list()) {
echo get_the_tag_list(\'<ul><li>\',\'</li><li>\',\'</li></ul>\');
}
?>
如果您通过before
参数,您可以简单地添加所需的任何类。然后你把这个类style.css
.
<?php
if ( get_the_tag_list() ) {
echo get_the_tag_list(\'<ul class="tag-list"><li class="tag-item">\',\'</li><li class="tag-item">\',\'</li></ul>\');
}
?>
我有自定义帖子,我创建了一个显示所有自定义帖子的页面。示例:www.example.com/archive-page我想知道是否可以更改与此自定义帖子相关的类别和标签的永久链接。现在我有:www.example.com/my-custom-post-type-cats/my-category-1www.example.com/my-custom-post-type-tags/my-tag-1</我想要这样的东西:www.example.com/archive-page?category=1www.e