Display taxonomy terms, child terms and posts in a template
Display taxonomy terms, child terms and posts in a template
Display taxonomy terms, child terms and posts in a template
The category parameters does not work with custom taxonomies. You need to use a tax_query instead. In your current code, replace (which is in any case also wrongly used, category_name takes the slug, not name) ‘category_name’ => $category->name with ‘post_type’ => ‘case-studies’, ‘tax_query’ => array( array( ‘taxonomy’ => $tax ‘terms’ => $category->term_id, ‘include_children’ => false … Read more
$_POST[‘tax_input[genres]’] should be $_POST[‘tax_input’][‘genres’]
Extend Walker Class for 2 checkbox taxonomy selection?
For fields associated with taxonomy terms, you must specify the term taxonomy along with the term id. In your case, the following would work: $term = ‘product-category_’.$range->term_taxonomy_id; $image = get_field(‘range_image’, $term); Documentation: http://www.advancedcustomfields.com/resources/get-values-from-a-taxonomy-term/
Show child terms of current term of the taxonomy
This can backfire if the timing goes haywire or completely puncture a tire if you run over a bed-of-nails which will make your car go nowhere. We need to consider a few things here other wise a tomato or bicycle can be labelled as a 1967 Ford Mustang Shelby GT500, or the make will be … Read more
Insert term and child term from frontend
The correct format for filters in the url is: ?filter[listing_area]=northwest&filter[listing_shooting_type]=clay You don’t need to create one ajax call per option, just one which combines the filters as set by the user
Display Posts Loop for each parent and for each Child