- This topic has 2 replies, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › sort by woocommerce featured product
Tagged: woocommerce
It depends how WooCommerce store the setting that a product is featured. Chances are it is a post meta (custom field). The problem will be that this field will only exist in the post meta data for a given product IF it IS featured. If it is not, there will be no field at all. That would result in ALL non-featured products disappearing from the results.
If the data is stored as, for example, ‘featured’ and ‘not featured’, then that could sorted on.
This does assume that WooCommerce correctly uses Post Meta. If it uses a taxonomy to store the data, that cannot be sorted by.