Certified Code AI ComponentsBuild custom widgets with AI — No code neededStart Building
Features & Functionality

How do you filter numbers in Wix?

Filtering numeric content in Wix

If your numbers are stored in the Wix CMS, the cleanest approach is to make sure the field type is numeric before you build the filter. A true number field can be compared reliably, while text fields that contain digits may sort or filter like words.

Common ways to filter numbers

  • Use the CMS field settings to store prices, ratings, years, counts, or scores as number fields.
  • Add page filters through your dataset or repeater setup when you want visitors to narrow visible items.
  • Use Velo code when you need custom rules such as greater than, less than, ranges, or combining numeric filters with text and category filters.
  • Check empty values before filtering so blank number fields do not produce confusing results.

Practical example

For a directory, portfolio, or product-like listing, you might let visitors filter entries by budget, size, rating, or quantity. Keep the stored values consistent, then show a dropdown, slider, or input that updates the connected dataset.

Tips to avoid mistakes

  • Do not include currency symbols or units inside the number field; keep those in labels or separate text fields.
  • Use a consistent format for decimals and whole numbers.
  • Test the filter with low, high, blank, and boundary values before publishing.

If you need more control, Wix Velo and the Wix CMS can work together so your page filters exactly the numeric range your visitors choose.