• Resolved Dan Stramer

    (@danstramer)


    Hi
    For the listing type dropdown, is there a way to order the itmes in the list?
    I have a group of listings which I would like to be shown together.

    Thanks
    Dan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Dan,

    it is possible to change the order, but there is currently no option to group certain listing types (as I have understood your request).

    With the release of WPCasa 1.1.0 (which should land in march) we will order listing types and listing locations in the search form, alphabetically by default. In the meantime you can use the following snippet to do this:

    /**
     * Order Listing Types by Name in Search Form
     */
    add_filter( 'wpsight_get_search_fields', 'custom_get_search_fields' );
    
    function custom_get_search_fields( $fields ) {
    
      $fields['listing-type']['data']['orderby'] = 'name';
      return $fields; 
    	
    }

    See here how you can add custom snippets to your site.

    All the best,
    Joe [WPCasa]

    Thread Starter Dan Stramer

    (@danstramer)

    Thanks Joe, much appreciated.
    So for now, how are the listing listed in the dropdown? Chronologically?

    Dan

    Plugin Author WPSight

    (@wpsight)

    Hello Dan,

    no, by ID. Which obviously doesn’t make much sense. Order by name makes much more sense therefore we will change it with the upcoming release.

    All the best,
    Joe [WPCasa]

    Thread Starter Dan Stramer

    (@danstramer)

    Thanks

    Dan

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

The topic ‘Listing type order’ is closed to new replies.