Connecting filter to dynamic table

4

On this page, I’ve built a query loop using ACF fields can’t get the filter to fire.
https://albumreviews.blog/nuggets-ii/

The structure looks like this:


Filter & Sorting block connected to Query Builder (gsbp-9e73ecf).

  • Change event fires.
  • Listener is attached.
  • gspbfiltervars exists.
  • No admin-ajax.php request is ever made.
  • Built-in sorting and custom field sorting both fail.
  • Query uses Rows/Columns Advanced.
Graham Fyfe

Replies

Responses

  1. You must have filter panel block on page, otherwise it will not work.

  2. Graham Fyfe Avatar
    Graham Fyfe
    Member

    I’ve implemented a filter panel and it’s working much better now. Thank you.I still can’t figure out how to sort alphabetically – it’s sorting by year ok, but it’s trying to sort by meta_value_num when I try to order alphabetically by song title “”orderby”: “meta_value_num”,

    1. your last message is not clear. Yes, it will sort by meta field if you set sort by meta field. Please note that your custom field must have direct numerical value to be sortable

  3. Graham Fyfe Avatar
    Graham Fyfe
    Member

    OK – I added a code snippet so that the fields I want to sort alphabetically do so. Feels like it would be a useful feature though.

About the Author