How to show taxonomy meta on frontpage?

Over at Google+ I posted the same question and credits go to Alexander Conroy for coding up the correct solution: /* List all blogs, source example 2: http://codex.wordpress.org/Function_Reference/get_terms#Examples * * credits Alexander Conroy – https://plus.google.com/u/0/113053085239726972447 */ $terms = get_terms(‘blog’, $args); $blog_image_meta = get_option(‘blog_image’); if (!empty($terms)) { foreach ($terms as $term) { $meta = isset($blog_image_meta[$term->term_id]) ? … Read more

Remove description in custom taxonomy edit screen

check out this thread – I’m afraid nothing has changed since then, there is still no way of filtering the description field (it’s just html hardcoded in the file https://github.com/WordPress/WordPress/blob/master/wp-admin/edit-tags.php#L484, so you can’t remove it with php without editing the core files, which is never a right way to go). The hook you’re using, {$taxonomy}_edit_form_fields … Read more

Exclude Custom Taxonomies

Your tax_query is incorrect. taxonomy does not take an array. taxonomy (string) – Taxonomy. http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters You will need to rewrite your arguments to be more like the following from the Codex: $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘movie_genre’, ‘field’ => ‘slug’, ‘terms’ => array( ‘action’, ‘comedy’ … Read more

Dynamically tax_query

Just needs a little array manipulation. $def = array( ‘taxonomy’ => ‘cities’, ‘field’ => ‘slug’, ‘operator’ => ‘NOT IN’ ); $cities = array( ‘boston’, ‘chicago’ ); $args = array(‘relation’ => ‘OR’); foreach ($cities as $c) { $args[] = wp_parse_args(array(‘terms’=>$c),$def); } print_r($args); The $cities array you need to build from your $_POST or $_GET form data, … Read more

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