Customized Query in Wordpress
September 18, 2007 · Print This Article
HTML:
-
<?php
-
$get_children = $wpdb->get_results('SELECT * FROM your category table WHERE category_parent = "The cat_ID of the parent that you want"');
-
foreach ($get_children as $child) {
-
}
-
?>
-
</ul>





Comments
Got something to say?