Newspaper theme and WordPress naming: if (have_posts())… but where the query filters are written?

I’m working on a theme (Newspaper) and I’ve started customizing the category.php page and the myloop.php

Coming from the c# style of programming for me is really hard to get the WP coding style.

I’ve read how have_posts() works but I cannot find where the query filters are specified. Is there a standard function used? Is it achieved in some other way?

The category.php file

The myloop.php file

My final purpose is to filter only for the posts which are directly in the current category but NOT in a child of the current category

Read more here:: Newspaper theme and WordPress naming: if (have_posts())… but where the query filters are written?

Leave a Reply

Your email address will not be published. Required fields are marked *