Taxonomy templates in a multilanguage site

The templates use the internal name of the taxonomy. These will be the same in all languages. The internal name is the first part in register_taxonomy($taxonomy, $object_type, $args). What your users see is the translated name from the labels. So, no, you don’t have to recreate the templates for each language.

Custom Post Type Template based on Taxonomy

I’m afraid you have to do this manually. You can put someting like this in your single-vehicles.php file: if ( … ) { // check if it’s in used category/term get_template_part(‘part-single-vehicles-used’); } else { get_template_part(‘part-single-vehicles-new’); } And then put new car template into part-single-vehicles-new.php file and used car template into part-single-vehicles-used.php.

Grouped custom taxonomy query

If you need nested queries, first you should think about, which data is needed. In your example you need all terms of a tanonomy as well as all posts belonging to each taxonomy. So the first step should be to find a way to loop through all terms of a taxonomy: /* TAXONOMIES */ // … Read more

Display yesterday’s last post’s Custom field from Unique terms of one Taxonomies

I hope I understood everything correct: display a specific custom field from a custom post-type post assigned to a specific term in a custom taxonomy for todays and yesterdays latest entry I can’t solve this task improving your SQL-statement, but you can try the following function using standard WordPress stuff: function show_latest48h_post_cf_in_term( $cpt, $tax, $term_slug, … Read more

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