• Resolved James

    (@tacklemart)


    Hi,

    I have tried to customise the sorting widget by ACF ascending order. Unfortunately it just doesn’t work despite following all the guides.

    Please can you help with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @tacklemart

    Thank you for your interest in the Filter Everything plugin.

    You need to add new sorting option by meta key numeric if it is a numeric value only, not some type of mix of the data (wont work correctly). And specify the ACF meta key by which you want to sort the items.

    Best Regards – Victor

    Thread Starter James

    (@tacklemart)

    Hi Victor,

    Thanks for the reply… I can confirm that the ACF fields are all numeric as per this screenshot…

    https://prnt.sc/wS9_iY6U7no-

    Also all the products have a numeric value in them as per this screenshot…

    https://prnt.sc/yoxh6c0UCF0M

    And this is how I have set up the widget (although I am using the shortcode to display this)…

    https://prnt.sc/4qjKwYamzGMk

    And here is a screenshot after I select the overall rating sorting option…

    https://prnt.sc/tVSU8Q3fpeJY

    The numbers in green are the ACF fields and as you can see these aren’t sorted in order.

    Do you know why this could be at all?

    Plugin Support fesupportteam

    (@fesupportteam)

    We entirely recreated the situation to check if everything was working correctly. Here is the step-by-step repor:

    1. https://prnt.sc/K33LUchtRJi5 We created a custom numeric field in ACF https://prnt.sc/9zraChk2q6fR
    2. We created the filter to see what values we applied to our products – https://prnt.sc/NFIKLbWb2zUe
    3. And we created the sorting options by this custom field – https://prnt.sc/dv1t3g0ll5L1
    4. Here are the results of sorting from low to high – https://prnt.sc/zrVSd_EIUwa_
    5. And here are the results from high to low – https://prnt.sc/29g-ynaYpAPO

    As you see, everything is working correctly.

    Your issue can be complicated, but if you have enough skills in WordPress debugging, you can check in Database what values are stored by that meta key because changing the meta key names in the ACF is not changing their names in the Database. And that’s why issues like that can appear. Either way, you need to check all the data because everything will work if you create a new custom numeric field and use it on the products.

    Best Regards – Victor

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter by ACF’ is closed to new replies.