Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
You can use the plug-in CPT-onomies. It gives you the ability to set cpt office as a taxonomy for professionals.
How to get list of taxonomy slugs ordered parents>childs?
You should be able to get at the terms in your custom taxonomy using this function: http://codex.wordpress.org/Function_Reference/wp_get_post_terms
How to use multiple archive templates for a taxonomy?
Changing URLs for taxonomies and CPT
you will probably want to use term_exists http://codex.wordpress.org/Function_Reference/term_exists to check if the term is “valid”. Probably worth checking how good is that API with mismatched cases. Another option is to use AJAX to populated your input control base on the user input. I am almost sure there is some jquery plugin for that, and then … Read more
I had this same problem when I cloned my site to set up a development server – for me, it working by setting permalinks to ugly, saving, then setting them to pretty again, which rebuilt whatever had gone wrong in htaccess.
A custom taxonomy makes perfect sense – here’s hoping I haven’t missed something: $songs = get_posts( array( ‘post_type’ => ‘song’, ) ); $index = array(); // Build an album_id => songs index foreach ( $songs as $song ) { if ( $albums = get_the_terms( $song->ID, ‘album’ ) ) $index[ $albums[0]->term_id ][] = $song; else $index[ … Read more
I had the same problem even though my taxonomy was registered to Users. Found the answer at Custom user taxonomies in WordPress by Justin Tadlock (see the comments for the post). Add this to your code (replace YOUR_TAXONOMY with the proper name): function fix_user_tax_page( $parent_file=”” ) { global $pagenow; if ( ! empty( $_GET[ ‘taxonomy’ … Read more