Get the children of the parent category

You can’t just pass the string “parent” to get_categories. You have to pass the ID of the parent. $categories=get_categories( array( ‘parent’ => $cat->cat_ID ) ); Notice that there are two similar but not equal “get child” parameters that you can use. child_of (integer) Display all categories that are descendants (i.e. children & grandchildren) of the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)