No listings showing up for custom taxonmy...
Hello everyone...
I have a site where we have created some custom taxonomy for listings. The taxonomy is industry & market_place. I created a child theme and included taxonomy-industry.php & taxonomy-market_place.php and the pages come up, however, there are no listings under either of them. After a bit of debugging and looking $wp_query I see that the post type element of the object is not set and that the request is pulling posts, pages & attachments which seems like the standard WordPress pull.
I've been trying to reverse the flow of this page to see where I can set post_type to listing to get it to properly show results. I'm able to set post_type in wp_query to "listing" however, the request still shows that it's selecting post_types in posts, pages & attachments and not listings. I tried pulling the request first and then replacing the strings in question and then tried setting the request but that failed as I think request is a protected variable of the class. How can I set the post type to "listing" on a custom taxonomy archive page so I can see my listings?