custom post type query showing all posts instead of those in the taxonomy only
-
Hi I hope someone can help me here.
I’m doing something that I have done before, but it doesn’t seem to be working in this case.
I have a case study section on this site https://www.upssystems.co.uk/case-studies/ but I have got a problem with a few things here.
1) the taxonomies listed on the right are listing out even when items are not published to them (at the moment it’s showing those even if it’s in draft in that category)
2) Every category shows all the posts and not jut the ones in that category.
This is the code I’m using…
[Code moderated as per the Forum Rules. Please use the pastebin]
I’m using WP_Query() to do a custom query like I have done in the past, but it’s just not working as it has done in the past.
Please can anyone help me?
Not sure if this makes any difference, but it’s a WP MS install.
- The topic ‘custom post type query showing all posts instead of those in the taxonomy only’ is closed to new replies.