Custom Facet order

  • jnears
    Participant
    1 year ago #55782

    Hi

    The values for one of our facets is imported as numeric and alphanumeric values (01, 02, 03 …,13,14,15, bh01, bh02,…,bh16,bh17).

    We would like the order to be 15,14,13…03,02,02,bh17,b16…,bh02,bh01

    We cannot achieve this via the GUI.

    Is this possible with custom code?
    Many thanks

    wpsolr
    Keymaster
    1 year ago #55783

    You could use the filter WPSOLR_Events::WPSOLR_FILTER_UPDATE_FACETS_DATA to modify the facets items order.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.