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

Question

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.

0
InexperiencedCoder 2 months 0 Answers 6 views 0

Leave an answer