[solved]how to get list of categories programmatically

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mohamedh
Posts: 15
Joined: 30 Apr 2015, 09:07

[solved]how to get list of categories programmatically

Post by mohamedh »

Hi there

I was wondering if there is a ready-to-use function that allows me to get a list of categories in php.
Do I have to manually query the database and get them from the corresponding table? if I need to query manually is there at least a method like some "do_query" function, or do I really connect to the database on my own and get what I need?

I checked the developer guide but could not find much about it

Thanks
Last edited by mohamedh on 22 Dec 2022, 13:15, edited 1 time in total.
atrol
Site Admin
Posts: 8416
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: how to get list of categories programmatically

Post by atrol »

Check functions in core/category_api.php
Please use Search before posting and read the Manual
mohamedh
Posts: 15
Joined: 30 Apr 2015, 09:07

Re: how to get list of categories programmatically

Post by mohamedh »

thank you, found what I needed there.
Post Reply