Advertisement:

Author Topic: How to get category id from a category name?  (Read 50 times)

Resta

  • Sr. Member
  • ****
  • Posts: 345
How to get category id from a category name?
« on: August 01, 2019, 04:34:55 am »
Hello,

If I know the category name, how can I get the corresponding category ID?

Thanks!

WEBmods

  • Hero Member
  • *****
  • Posts: 936
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: How to get category id from a category name?
« Reply #1 on: August 01, 2019, 01:35:04 pm »
Hello!

Helper for that isn't available as there could be multiple categories with the same name. Can you give me a context - on which page you need to get category ID?

Regards.