We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_post_category_link
if (!is_category()) { $cate = $cats[0]; } else { $cate = get_category($cat); }
这部分内容是判断是否为分类页面,然后返回对应值。但是如果有父分类和子分类的情况下,在父分类页面会显示为父分类的名称和链接,不是真实所在的子分类名称和链接。 原展示效果: 修改:
$cate = $cats[0];
不需要进行判断,直接获取就可以解决。发布文章时,只需要设置子分类即可。 修改后效果图:
The text was updated successfully, but these errors were encountered:
✨ 优化分类目录下的分类细分展示 #436
c7e567a
No branches or pull requests
get_post_category_link
函数逻辑问题。问题部分:
这部分内容是判断是否为分类页面,然后返回对应值。但是如果有父分类和子分类的情况下,在父分类页面会显示为父分类的名称和链接,不是真实所在的子分类名称和链接。
原展示效果:
修改:
不需要进行判断,直接获取就可以解决。发布文章时,只需要设置子分类即可。
修改后效果图:
The text was updated successfully, but these errors were encountered: