25% Off Hurry up, the offer is only valid until April 25, 2025!
View Categories

Sorting Widget

1 min read

The Filter Everything plugin contains the Sorting Widget that allows you to sort filtered posts or products in fact by any criteria.

Possible criteria are:

  • Post ID
  • Author
  • Post title
  • Post slug
  • Post date
  • Number of comments
  • Product price
  • Product sales number
  • Product rating
  • Product reviews number
  • Meta key
  • Meta key numeric
  • Random

In general it supports the list of all post-related criteria and Meta key or Meta key numeric that cover 99% of possible needed sorting parameters.

How to create? #

  1. Go to the Appearance
  2. Click Widgets
  3. Choose the needed widget area and click  to add a new widget
  4. Write filter everything in the search box
  5. Choose the “Filter Everything — Sorting” widget
Screenshot

Sorting Widget Options #

In the widget settings form you can edit or add new sorting options using the button + Add sorting option”. Also, you can change sorting options order by dragging them up and down.

  1. Title – defines the title of the widget (optional)
  2. Add sorting option – creates a new sorting option
  3. Title – the title of the sorting option, will be displayed as an option in the dropdown list
  4. Order by – defines the criteria by which posts will be sorted
  5. Meta key – defines the meta key of the custom field by which posts will be sorted (only for Meta key and Meta key numeric)
  6. Order – defines the sorting order ASC or DESC
Screenshot

In addition you can use Sorting Widget shortocode to insert Sorting dropdown in the place, where regular WordPress widgets are not supported.