How to set logic ‘AND’ for taxonomies terms of the same taxonomy


  • This works for shortcode [mdf_custom custom_id=777] with attribute 'custom_id' (777 is in the code below) + doesn work with dynamic recount (you can hide count by CSS)
  • Example: http://general.wp-filter.com/category/flowers-posts/
  • open your current wp theme functions.php file
  • drop there next code:
  • In the function mdf_dyn_tax_recount_args in array $and_tax_relation write your taxonomy instead 'post_tag' OR using comma add more another taxonomies ...
  • Works from version 2.2.1/1.2.1
  • Just a video for one the client: https://drive.google.com/file/d/0B4zUhfhZlonlMUNRNTA5RTZJQU0/view