I have wp_dropdown_categories working without setting child_of. Once I set child_of, all categories disappear. Here's my code, what should I do to enable child_of?
function dropdown(){
$book_term=term_exists('book','category');
$book_term_id = $book_term['term_id'];
$dropdown = array(
'child_of' => $book_term_id,
'hide_empty' => 0
)
?>
wp_dropdown_categories( $dropdown );
<?php
}
;after the function. Please turndefine( 'WP_DEBUG', true );on in yourwp-config.phpfile and tell us about the error output. – kaiser Mar 5 at 13:20