您好,我自定义了一个wordpress主题,该主题没有包含痕迹并按标签存档页面上的功能排序。我找到了一些使用自定义css / php的解决方法来完成这项工作,但我正在努力解决结果/计数循环。
到目前为止,我已将我的子主题文件夹中的自定义category.php添加到了以下内容:
<div class="brtags">
<div class="page-title-inner flex-row medium-flex-wrap container">
<div class="flex-col flex-grow medium-text-center">
<?php if(is_product_tag()) woocommerce_breadcrumb(); ?>
</div>
<div class="flex-col medium-text-center form-flat">
<?php if(is_product_tag()) woocommerce_catalog_ordering(); ?>
</div>
</div>
</div>
关于为了结果计数而添加的代码的任何建议也只有在标记存档页面上才可见?
答案 0 :(得分:0)
通过添加
来计算出来<?php if(is_product_tag()) woocommerce_result_count(); ?>