If you have this Category in MT4:
- Category A
Category B
Category C
Category D
etc.
and wish select some category, this is the solution:
CODE
<mt:IfArchiveTypeEnabled archive_type="Category">
<div class="widget-archive widget-archive-category widget">
<h3 class="widget-header">Canali selezionati</h3>
<div class="widget-content">
<mt:TopLevelCategories>
<mt:SetVarBlock name="IncludeCategory"><$MTCategoryLabel$></mt:SetVarBlock>
<mt:If "$IncludeCategory" like="(Category A|Category B|Category C)">
<mt:SubCatIsFirst>
<ul class="widget-list">
</mt:SubCatIsFirst>
<mt:IfNonZero tag="mt:CategoryCount">
<li class="widget-list-item"><a href="<$mt:CategoryArchiveLink$>"<mt:IfNonEmpty tag="mt:CategoryDescription"> title="<$mt:CategoryDescription$>"</mt:IfNonEmpty>><$mt:CategoryLabel$> (<$mt:CategoryCount$>)</a>
<mt:Else>
<li class="widget-list-item"><$mt:CategoryLabel$>
</mt:IfNonZero>
<$mt:SubCatsRecurse$>
</li>
<mt:SubCatIsLast>
</ul>
</mt:SubCatIsLast>
</mt:If>
</mt:TopLevelCategories>
</div>
</div>
</mt:IfArchiveTypeEnabled>
<div class="widget-archive widget-archive-category widget">
<h3 class="widget-header">Canali selezionati</h3>
<div class="widget-content">
<mt:TopLevelCategories>
<mt:SetVarBlock name="IncludeCategory"><$MTCategoryLabel$></mt:SetVarBlock>
<mt:If "$IncludeCategory" like="(Category A|Category B|Category C)">
<mt:SubCatIsFirst>
<ul class="widget-list">
</mt:SubCatIsFirst>
<mt:IfNonZero tag="mt:CategoryCount">
<li class="widget-list-item"><a href="<$mt:CategoryArchiveLink$>"<mt:IfNonEmpty tag="mt:CategoryDescription"> title="<$mt:CategoryDescription$>"</mt:IfNonEmpty>><$mt:CategoryLabel$> (<$mt:CategoryCount$>)</a>
<mt:Else>
<li class="widget-list-item"><$mt:CategoryLabel$>
</mt:IfNonZero>
<$mt:SubCatsRecurse$>
</li>
<mt:SubCatIsLast>
</ul>
</mt:SubCatIsLast>
</mt:If>
</mt:TopLevelCategories>
</div>
</div>
</mt:IfArchiveTypeEnabled>
Ciao
Raffaele