Forums Forums Search & Filter Pro I want to display in order to tag’s order.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Trevor
    #243833

    Order type plugins tend to use the WordPress pre_get_posts() function, which runs after wp_query() (and as our query runs much the same way as wp_query, pre_get_posts runs after our query also).

    When pre_get_posts runs, it overrides our query and so the search often stops working. So, plugins like the one you mention are not recommended for use alongside our plugin.

    So, does each post have only one tag (otherwise, sorting by tag would be problematic, which of many tags on any post should the sort use)?

    You can add a custom orderby (sort) using this filter;

    https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments

    Anonymous
    #243957

    Thank you Trevor!
    I learned a lot from below!

    Order type plugins tend to use the WordPress pre_get_posts() function, which runs after wp_query() (and as our query runs much the same way as wp_query, pre_get_posts runs after our query also).

    I tried this plugin, and this is work fine!
    https://wordpress.org/plugins/intuitive-custom-post-order/

    Thank you!

    Trevor
    #243961

    Is this resolved now?

    Anonymous
    #243965

    Yes. This is completely resolved!
    Thank you!

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