Testing and obtaining category_parent ID
I haven’t used WordPress for long, and know nowt about php. So I am having to ask for help.
I am working on this function
$current = $_GET[cat];
Which returns whichever category id you happen to be in. Which is fine when they are not ‘children’. When they are it is causing problems, soI need to amend it to test for the existence of a category_parent(greater than 0 anyway), and return the relevant ID.
Can anyone help me with this? I have been playing with it all day and got absolutely nowhere.
All help appreciated…
- The topic ‘Testing and obtaining category_parent ID’ is closed to new replies.