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
function get_here($current){
$current = $_GET[cat];
echo $current;
}
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…
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Testing and obtaining category_parent ID’ is closed to new replies.