Plugin

Archived
Forum
(read-only)

Child Categories

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

Limit Child Categoies, I want show just ONE child category

Support Request

spatafore
spatafore

hi, why dont see any parameter for limit???

{exp:child_categories
channel=‘products_new’
parent=‘8’
limit=‘1’
}

{child_category_start}{child_category_name}{child_category_end}

{/exp:child_categories}

see in red, I want show just ONE child category! not all childs

help! thanks

Laisvunas
# 1
Developer
Laisvunas

Hi,

In this plugin there is only parameter “entries_limit” used to limit the number of entries displayed for each child category. There is no analogous parameter to limit the number of child categories displayed.

Still you can achieve what you need by using conditional:

{if "{child_category_count}" == "1"}
{child_category_name}
{
/if} 
MobsterEE
# 2
MobsterEE

I know this is old, but I need the same thing.  I need to limit the child categories and the above code isn’t working…..