PDA

View Full Version : how do I count ONLY main category instead of main and sub-categories


tadisaus2
09-01-2006, 07:54 PM
Hello,

Can you please show me how to count ONLY the main category (how many links) instead of main and sub-categories combination?

Thanks.

Vincent Wright
09-06-2006, 11:40 AM
As I understand you only want to count immediate children links (i.e. links for which the category is the immediate parent), and not include grand-children, grand-grand-children, etc. links.

My question is: do you want to do it for Top Categories only or for any category?

tadisaus2
09-06-2006, 02:52 PM
Hello,
I want to do it on the first index page where lists all categories.
directory/index.php
For example, I have this:
category(10 links)/sub-category(10 links)
I want to list like this on the index page ('cause I do not list the sub-catetory on main page): category (10), instead of category (20)

Thanks.

Vincent Wright
09-16-2006, 12:05 PM
What is the URL of you directory where you want to apply this?

tadisaus2
09-20-2006, 08:55 PM
Here is my domain, www.usmatch.info/directory/
thanks.

duongvanhuy
09-20-2006, 09:43 PM
Hi !

same for me, i want juste count categories !