child_of not working in wp_dropdown_categories

The variable $book_term_id has not been set. You either need to pass it to your function or set it in your function. Pass it to your function: <?php dropdown($book_term_id); ?> Set it in your function: function dropdown(){ $book_term_id = 5; // if a global variable, you can just use: global $book_term_id; $dropdown = array( ‘child_of’ … Read more

Retrieve all term IDs of post

Try out this code and see if it works for you, I just cooked it up real quick and haven’t tested it, so it may be way off base, but the concept is there. $tax_args = array( ‘public’ => true ); $taxonomies = get_taxonomies( $tax_args, ‘names’, ‘or’ ); $term_args = array( ‘fields’ => ‘ids’ ); … Read more

Taxonomy Checkbox Admin Panel

Change the name of the checkboxes fromfirm to firm[]. Then, when you go to save the checkboxes $terms = $_POST[‘firm’]; will give you an array of term slugs that can be checked/sanitized prior to using wp_set_object_terms to add the terms… wp_set_object_terms( $user_id, $terms, ‘firm’, false);

Display check marked taxonomies as drop down menu

If I understand correctly, you want to display the taxonomies you selected in the admin UI when you display your custom post type in the frontend. What you will need to do in that case is to modify the template file that displays your post, and use something like (adapted from content-single.php under TwentyEleven: <?php … Read more

Can you have seperate sidebars for multiple taxonomy archives?

I’ve had luck dynamically creating sidebars using a foreach loop. You’d do something like this (untested) in your functions.php file: $my_terms = get_terms( ‘my_taxonomy_name’ ); if( ! is_wp_error( $my_terms ) ) { foreach( $my_terms as $term ) { register_sidebar( ‘name’ => $term->name . ‘ Archive Sidebar’, ‘id’ => ‘archive_sidebar_’ . $term->term_id ); } } Then, … Read more

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