我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何删除类别档案下方的[空]?

Been trying to google for answers but to no prevail.

http://puu.sh/4ir5w.jpg

and here's how it looks like under archives.php:

http://puu.sh/4kcJr.png

I've tried deleting the empty lines but it just leads to a parse error. And this is on a Wordpress site. Please help!

Maybe you better edit the functions which return the descriptions....but for a quick & dirty fix - try this one:

if( !empty($category_description) && $category_description !== '[empty]' )
//...

if( !empty($tag_description) && $tag_description !== '[empty]' )
//...

近期文章

  • 通过Swagger UI上传文件
  • preg_match_all()使用
  • 加入两个表并显示结果 - php / mysql
  • 当用户更改类别时自动填充表单时使用JSON
  • 使用一个查询和一个php文件显示来自两个不同表的图像
  • Html / php电子邮件页面/表单
  • 喜欢动态字符串
  • 加入两个表 - php表单根据输入日期显示结果
  • too long
  • php mysql date.utc并计算出现次数
  • 使用jQuery和PHP预加载PDF以与Chrome配合使用
  • 快速将我的Wordpress站点转移到另一台服务器
  • 单击图像时从动态表中删除行
  • too long
  • 针对分类术语和后期元数据的Wordpress自定义查询
  • 在android上流式传输mp4文件的奇怪问题
  • 在PostgreSQL中选择最适合的事务组合
  • 如何使用具有相同功能的两个xml结构
  • 在PHP中模拟HTML5 LocalStorage
  • Drupal 7图像无法显示

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华