Home > Backend Development > PHP Tutorial > How does typecho not display a specific category?

How does typecho not display a specific category?

WBOY
Release: 2016-07-06 13:52:10
Original
1747 people have browsed it

Currently, I output all categories in my blog through the following sentence

<code><?php $this->widget('Widget_Metas_Category_List')
            ->parse('<li><a href="{permalink}">{name} ({count})</a></li>'); ?>
            </code>
Copy after login
Copy after login

Now I want to hide a specific category in this column, how to achieve it?

Referring to this article, I tested the mid of that category and used ignore=mid to control the hiding of a specific category. However, it does not work after this modification. How to implement it?

Reply content:

Currently, I output all categories in my blog through the following sentence

<code><?php $this->widget('Widget_Metas_Category_List')
            ->parse('<li><a href="{permalink}">{name} ({count})</a></li>'); ?>
            </code>
Copy after login
Copy after login

Now I want to hide a specific category in this column, how to achieve it?

Referring to this article, I tested the mid of that category and used ignore=mid to control the hiding of a specific category. However, it does not work after this modification. How to implement it?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template