Change link of taxonomy when get_the_term_list( is used?
Change link of taxonomy when get_the_term_list( is used?
Change link of taxonomy when get_the_term_list( is used?
WP_query sort by taxonomy
Using Sprit-sheet on WordPress categories
First things first… Why it doesn’t work? Your code doesn’t work, because you use WP API incorrectly… Method set takes exactly two arguments: set( $query_var, $value ) Set a named query variable to a specific value. So how do you use it in your code? $query->set( get_terms( array( ‘taxonomy’ => ‘cat_publications’, ‘orderby’, ‘slug’ ) ) … Read more
You don’t need to create any taxonomies or use directors as taxonomy. All you need is to add director_id field to movies. So when you edit a movie, you can select it’s director. Later you can use meta queries to show all movies directed by given person.
found the code that do the trick $terms = get_the_terms( $product_id, ‘my_taxo’ ); foreach ($terms as $term) { $product_cat = $term->name; } echo $product_cat ; from below discussion https://stackoverflow.com/questions/33495716/get-the-product-categories-and-display-it-on-cart-page-woocommerce Thanks for the authors
I found a solution that serves my purposes. I found this plugin (https://wordpress.org/plugins/radio-buttons-for-taxonomies/) that will allow me to use Radio Buttons for taxonomies instead of the tag cloud, so I avoid the bug with the tag cloud by using this interface instead. It only allows posts to be tagged with one term from each taxonomy … Read more
solved The rewrite slug of the custom taxonomy was somewhere competing with the corresponding custom post type slug. Afterwards I added a normal loop to the archives.php template. That made the trick.
You can use get_term_field() like this: if ($column_name === ‘image’) { $slug = get_term_field( ‘slug’, $term_id ); $columns=”<img src=”” . $slug . ‘.jpg”>’; } Or get_term(): if ($column_name === ‘image’) { $term = get_term( $term_id ); $columns=”<img src=”” . $term->slug . ‘.jpg”>’; }
I was able to find a solution by creating a class that adds a filter that runs a meta query and an extra checkbox to the menu editor for the root items that need to be generated.