WP_Query or Simple Loop: The loops does not work in custom pages or template files

I have been trying to list a number of posts from a particular category in a custom template file. I used native loop, WP_Query and query_post. All of it returns ‘home’ as the result.

Could someone please assist me how to figure this out?

Thanks

Read more here: WP_Query or Simple Loop: The loops does not work in custom pages or template files

Leave a Reply

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