I’m trying to get the category ID # to use in a switch statement.
I’ve searched and have found a few things but can’t get them to work.
Basicly what I’m testing is this
$category_id = get_cat_ID();
Also do the permalinks effect this?
Any pointers would be appreciated, Thanks
- The topic ‘How to get the category ID’ is closed to new replies.