I am using WooCommerce to display a product loop and have built out a filter for the same loop. The filter uses acf meta which the values are pulled directly from the query string. The meta_query is working as expected, however the tax_query seems to be not ineffective. I need some assistance as to why my tax_query is not producing
Tag: taxonomy
WordPress Display Child Term of the Current Category Page?
Hi I am trying to display the child term of the current post category page. However I can figure out what am missing here. Thanks Answer In your code the taxonomy should be “category”, so your arguments for get_terms() should have “taxonomy” => “category”. $current_tax is irrelevant in this code then.
WordPress taxonomy last child separated by “en” instead of comma
I’m trying to create a shortcode that outputs my custom taxonomies, separated by a comma, but i want the last comma to be “en” instead of a comma. So like this: taxonomy, taxonomy, taxonomy en taxonomy So far i have this: Answer As I dont have an example of the $terms or $entry_terms variable I had to make up some
Get taxonomy name
I’m trying to modify a theme that has custom posts with custom taxonomies. At the bottom of the posts it displays a list of other posts (as in “you might also like…”) What I’m trying to do is to filter the posts that are displayed in that area so they match the category of the current post. It’s a tour