Sort widget options based on archive and post type

  • jnears
    Participant
    1 year, 9 months ago #52627

    Hi

    Depending on the archive and custom post type, we want to customise the sort widget options in the dropdown list. If we are in an archive of custom post-type publications, we would also like to include the publication date (an ACF field) for sorting. For other searches, we do not want this option available. Is there a method to control this?

    Many thanks

    wpsolr
    Keymaster
    1 year, 9 months ago #52630

    You can use the filter WPSOLR_FILTER_SORT_FIELDS to manage the fields shown in the sort widget based on your own conditions.

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

You must be logged in to reply to this topic.