Is doing a database query in Woocommerce efficient to only display posts from a certain category?


On my WordPress website I want to create a "featured items" slider at the top, to fill the slider with posts my idea was to do a database query for all item posts with a certain category and display them within this. However this doesn’t seem efficient and like I am skipping out main WordPress functionality.

Any other suggested ways of doing this would be appreciated, I know there is a woocommerce slider plugin however I would like this to be a custom feature.

InexperiencedCoder 8 months 2020-12-02T10:10:44-05:00 0 Answers 6 views 0

Leave an answer