Tags hierarchical
Tags hierarchical
Tags hierarchical
A terms slug is not stored as meta/custom fields, and it’s definitely not post meta, so update_term_meta and update_post_meta are innapropriate and can never be used to achieve your goal. The correct function is wp_update_term, however you’ve used that incorrectly too: $term->id isn’t a thing, if we look at the WP_Term class and the examples … Read more
How to embed the Taxonomy Admin screen in to a Tab of a Settings Page in a plugin
Exclude taxonomy term from list of current taxonomy terms
take a look at scribu Query Multiple Taxonomies plugin it creates a drill-down navigation widget
I posted a plugin once to add artist information to media files. You should be able to extend it easily. Then query for the post type attachment and the meta data you used to get the list.
You can use get_query_var( ‘term’ ) to get the current term and get_query_var( ‘taxonomy’ ) to get the current taxonomy, then all that is left is to use [wp_dropdown_categories()][1] function withchild_ofparameter andtaxonomy` parameter, so something like this: //first get the current term $current_term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); //then set … Read more
you can look at line 874 in /wp-includes/taxonomy.php for the function itself. the value has stripslashes applied and then it’s used in a prepared statement, so I’d say it’s safe. but there’s nothing stopping you from checking the value yourself first if you know what parameters it will always fall within, like ctype_alnum or something. … Read more
when using show_option_all with wp_dropdown_categories it gets the value of ‘0’ so you can just check using your $_GET[‘property_types’] if it is ‘0’ you know i’ll need to show results of “all ID 14, 15, 16”
I used http://rolopress.com/ a while back and have nice features for contact administration