update_term_meta not working

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

Custom Taxonomy With Author?

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.

Displaying Custom Taxonomy Children in Dropdown

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

get_term_by with a variable

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

Taxonomy Dropdown Question

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”

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)