document.writeln('');

国产精品最大AV站在线观看,a级黄毛片试看三分钟,AV无码A片高潮AV,国产午夜精品一区二区三区,久久爆乳不卡一区,日本三级欧美三级,日韩精品AV一二三区在线,高H短篇小说抽插

當前位置:首頁 > 免費源碼 > 『子比功能自定義二』分類標簽頁面 文章數總計、描述隱藏

『子比功能自定義二』分類標簽頁面 文章數總計、描述隱藏

游戲科技網2026年09月15日 00:51免費源碼70

前言

修改教程僅用于功能實現,如果您覺得功能不需要,可以路過,謝謝。

實現效果:

 

 

 

上下對比

定位文件

本文隱藏內容
  • zibll/inc/options/admin-options.php
  • zibll/inc/functions/zib-category.php

代碼

本文隱藏內容
  • admin-options.php 搜索 “分類頁面” ,下面插入紅框代碼

 

代碼:

 
 
 
array(
title => __(顯示文章總計, zib_language),
id => page_cat_sum_s,
type => switcher,
default => true,
),
array(
title => __(顯示分類描述, zib_language),
id => cat_show_desc,
type => switcher,
default => true,
),
  • admin-options.php 搜索 “標簽頁面” ,下面插入紅框代碼

 

代碼:

 
 
 
array(
title => __(顯示文章總計, zib_language),
id => page_tag_sum_s,
type => switcher,
default => true,
),
array(
title => __(顯示分類描述, zib_language),
id => tag_show_desc,
type => switcher,
default => true,
),
  • zib-category.php 
  • 搜索 “zib_cat_cover()”函數,整個函數替換:
 
 
 
function zib_cat_cover($cat_id = )
{
if (!$cat_id) {
$cat_id = get_queried_object_id();
}
if (_pz(cat_show_desc, true)){
$desc = trim(strip_tags(category_description()));
if (is_super_admin() && !$desc) {
$desc = 請在Wordress后臺-文章-文章分類中添加分類描述!;
}
 
$desc .= zib_get_term_admin_edit(編輯此分類);
}
//global $wp_query;
 
$cat = get_category($cat_id);
$count = zib_get_cat_postcount($cat_id, category);
$title = <i class="fa fa-folder-open em12 mr10 ml6" aria-hidden="true"></i> . $cat->cat_name;
if (_pz(page_cat_sum_s, true)){
$title .= <span class="icon-spot">共 . $count . 篇</span>;
} else {
$title .= ;
}
//$title .=<pre>. json_encode($wp_query) .</pre>;
if (_pz(page_cover_cat_s, true)) {
$img = zib_get_taxonomy_img_url(null, null, _pz(cat_default_cover));
zib_page_cover($title, $img, $desc);
} else {
echo <div class="zib-widget">;
echo <h4 class="title-h-center"> . $title . </h4>;
echo <div class="muted-2-color"> . $desc . </div>;
echo </div>;
}
}
  • 同理搜索 “zib_tag_cover()”函數,整個函數替換:
 
 
 
function zib_tag_cover()
{
if (_pz(tag_show_desc, true)){
$desc = trim(strip_tags(tag_description()));
if (is_super_admin() && !$desc) {
$desc = 請在Wordress后臺-文章-文章分類中添加標簽描述!;
}
 
$desc .= zib_get_term_admin_edit(編輯此標簽);
}
global $wp_query;
$tag_id = get_queried_object_id();
$tag = get_tag($tag_id);
$count = $tag->count;
$title = <i class="fa fa-tag em12 mr10 ml6" aria-hidden="true"></i> . $tag->name;
if (_pz(page_tag_sum_s, true)){
$title .= <span class="icon-spot">共 . $count . 篇</span>;
} else {
$title .= ;
}
if (_pz(page_cover_tag_s, true)) {
$img = zib_get_taxonomy_img_url(null, null, _pz(tag_default_cover));
zib_page_cover($title, $img, $desc);
} else {
echo <div class="zib-widget">;
echo <h4 class="title-h-center"> . $title . </h4>;
echo <div class="muted-2-color"> . $desc . </div>;
echo </div>;
}
}

最后

  • 修改文件具有風險,注意備份相關文件

“『子比功能自定義二』分類標簽頁面 文章數總計、描述隱藏” 的相關文章