what query should I use to display different category listings in each tab on home page. For example category ID is 50.
Nobody knows what query is used to display listings by category? I never needed that so far, and something that I tried didn’t work. For example $query = new WP_Query( ‘cat=50’ ); It displays all listings, not just for that category.
In the query string box?
Great, that’s the query I needed.
Thank you so much Ian, that worked for me. (And I figured out the short code bit myself which I’m a little proud of as I am a complete blind mouse when it comes to code etc). So cheers 🙂
I have tried several of the codes that I found searching the forums and none of them have worked, the above code at least gives me a blank return, I’m confused what if anything goes after cat_name?
I have also tried the short code [LISTINGS=57] in the HTML section with no luck
@Gilbert Where are you trying to display your listings?If its a page then try this
[code title=””][LISTINGS cat=’1′ orderby=’post_title’ order=’desc’ show=10][/code]
replace the 1 with your category ID >>https://www.premiumpress.com/docs/#LISTINGS
It was in a tab, that worked, thank you!
You’re welcome.Good day 🙂
Copyright © 2010-2020 PremiumPress Limited.