Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

ibetthisispublic on "Show only post from selected category"

$
0
0

Hi.

I have searched for about 10 hours now and even though I've found some category template hacks out there, the ones that kind of work still don't fix the problem.

The same problem/behaviour goes for standard posts as for Woocommerce product listings: when a base category is selected, WP shows all posts, even those from subcategories.

Even if I somehow manage to code a template that would list the desired products, the product counter would still be wrong because that's part of a different php file that's loaded before the template.

So I am looking for a hack/filter that would alter the core WP code so that when I list posts from a certain category, none from subcategories are returned. This is the behaviour I want for all posts on the site.

Thanks for reading.


Viewing all articles
Browse latest Browse all 8245

Trending Articles