category_name not working (not showing up in sql query debug)
If you’re using custom taxonomy for your CPT, then you can’t use params of WP_Query that are related with built-in categories – WP won’t be able to guess what taxonomy should be queried. So, let’s say you have a custom taxonomy called animal_type, then your query should look something like this: $query = new WP_Query( … Read more