Creating Custom wp_dropdown_categories

You seem to be mixing up wp_list_categories arguments with wp_dropdown_categories, so i’ve removed them from the code that follows, i’ve also assumed the include argument is suppose to refer to the currently selected item. For ref: wp_dropdown_categories wp_list_categories Suggested code: global $current_user; get_currentuserinfo(); $authorcategory = get_user_meta( $current_user->ID, ‘authorcategory’, true ); $user_term = get_term_by( ‘slug’, $authorcategory, … Read more

Why do my custom post types show up in the dashboard, but not on my site?

flush_rewrite_rules() as soon as you register the custom post type. It appears that they have not been rewritten yet, that is, most probably, why you’re getting an embarrassing message. register_post_type( ‘mysite_reviews’, array( ‘labels’ => array( ‘name’ => __( ‘Reviews’ ), ‘singular_name’ => __( ‘Review’ ) ), ‘public’ => true, ‘menu_position’ => 5, ‘rewrite’ => array(‘slug’ … Read more