Is there a way to get subcategory id?

More
14 years 2 months ago #4831 by kaianuar
Hi there,

I know the code below will get the subcategories names
Code:
foreach ($this->categories as $sub) : echo $this->escape($sub->title); endforeach;[

However is there a way to get the id for each sub category? I tried
Code:
$sub->id;
but that didn't work.

Thanks

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.317 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline