Not Able to Insert Taxonomy Term Using wp_insert_post()

Few points come to mind: There is a typo in “post_type” => “‘eyeglasses” (extra single quote). It should be: “post_type” => “eyeglasses”. Try putting the $term instead of array( $term ): “tax_input” => array( “models” => $term ) Also, is it models or model? e.g. “tax_input” => array( “model” => $term ) tax_input requires assign_terms … Read more

term_description help

H1 tags around the descriptions? echo ‘<h1>’ . term_description() . ‘</h1>’; UPDATE: Add link to plugin to allow HTML in term descriptions. WordPress Plugins – Allow HTML in Category Descriptions This will work with custom taxonomies to. http://wordpress.org/extend/plugins/allow-html-in-category-descriptions/ Copy of the appropriate code For those of you that want to simply see how it’s done. … Read more

Multiple users – only allow them to manage their own terms for custom taxonomy when logged in

Thanks for the AWESOME solution MikeSchinkel 😀 I just did the following updates in the code and it worked like a charm: add_filter(‘list_terms_exclusions’, ‘yoursite_list_terms_exclusions’, 10, 2); function yoursite_list_terms_exclusions( $exclusions ) { $currentScreen = get_current_screen(); if( current_user_can( ‘my_custom_capability_assigned_to_specific_users’ ) && !current_user_can( ‘manage_options’ ) // Show everything to Admin && is_object( $currentScreen ) && $currentScreen->id == ‘edit-<my_taxonomy>’ … Read more

Archive template for taxonomy terms

I want to document this because I just found the answer recently. The problem with having taxonomy is that most developers have the mindset of expecting the taxonomy to be seen inside the post_type url of: http://hostname/post_type/taxonomy_term Instead, you are going to find the url in: http://hostname/taxonomy_slug/taxonomy_term This means that we often may be creating … Read more