Random category URLs not working

Did you flush your rewrite rules after you created the taxonomy? I tested your code (only changing ‘videos’ to ‘post’) by adding to my functions PHP (TwentyEleven Theme WordPress 3.2 Trunk) then flushed my rewrite rules and created a post and gave it the testcat of test1 and the URL worked. add_action( ‘init’, ‘c3m_wp_stackx’); function … Read more

Can I set the post_type query_var as a link is clicked?

You can use pre_get_posts filter hook to set the post type passed by the user: paste this code in your theme’s functions.php file: function user_set_type( $query ) { //only on your taxonomy page if ( $query->is_tax(‘YOUR_CUSTOM_TAXONOMY’) ) { //and only if the guesst has selected a type if (isset($_GET[‘UTYPE’]) && !empty($_GET[‘UTYPE’])){ $query->set( ‘post_type’, $_GET[‘UTYPE’] ); … Read more

Taxonomy dropdown metabox in the back-end

I had the same question. You use the remove_meta_box functions mentioned in a previous answer, but you have two options: tagsdiv-{$tax_name} for non-hierarchical taxonomies and {$tax_name}div for hierarchical taxonomies (like categories). So in your case: remove_meta_box(‘tagsdiv-brands’, ‘post’, ‘normal’); remove_meta_box(‘brandsdiv’, ‘post’, ‘normal’);