Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi roundamerica,

    Looks like that’s an option that we missed (regions fields not showing up). We’ll add it to the list of things to fix for a future release.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi roundamerica,

    OK–I had a discussion with my developer. Here’s why it’s “missing” right now:

    Multivalued fields are not available for the sort bar for reasons we’ve discussed before. The problem here is that there is no way to linearly order listings by a multivalued field such as a meta fields select, checkbox or fields with association category, tags or taxonomy.
    If a listing is, for instance, in “Category A” and “Category C” does it come before or after a listing in “Category A” and “Category B”? You could say that we order by the “first” category and then the second but there’s no concept of first or second category in WP.

    The same thing applies to Regions. I understand what the customer wants here because the fields (i.e. Country, State, City) look like “separate” fields but because Regions is a taxonomy, those fields are not really separate columns in the database. A listing is associated to all of its regions (city, state, country) without distinction of region level or field. When we’re displaying just one listing we’re able to use PHP code to determine which field goes with each region/region level, but we can’t use PHP in an SQL query so adding this to the sort bar, at least with our current implementation of Regions as a taxonomy, is not possible.

    Making it a taxonomy allows us to do other things, but it constrains us in others unfortunately.

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

The topic ‘Sortbar Options’ is closed to new replies.