优化加入我们录取进度查询表单样式

增加文章详情页文章筛选方式
用户点击文章标签时自动筛选出对应标签文章
This commit is contained in:
2026-03-07 15:39:33 +08:00
parent 97e19e990a
commit 9be0018a1e
6 changed files with 456 additions and 53 deletions
+9 -2
View File
@@ -60,8 +60,15 @@
?>
<footer class="single-article-tags">
<?php foreach (array_slice($tags, 0, 8) as $tag) : ?>
<?php $tag_link = get_term_link($tag); ?>
<?php if (!is_wp_error($tag_link)) : ?>
<?php
$tag_link = function_exists('itstudio_get_archive_tag_filter_url')
? itstudio_get_archive_tag_filter_url($tag, $post_type)
: '';
if ($tag_link === '') {
$tag_link = get_term_link($tag);
}
?>
<?php if (!is_wp_error($tag_link) && !empty($tag_link)) : ?>
<a class="single-article-tag" href="<?php echo esc_url($tag_link); ?>">#<?php echo esc_html($tag->name); ?></a>
<?php endif; ?>
<?php endforeach; ?>