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

How does typecho not display a specific category?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-06 13:52:101753browse

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>

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>

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?

Statement:
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