Sorting Options

This topic contains 17 replies, has 5 voices, and was last updated by  Fulvio Di Stefano 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #498684

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    I see that some fields don’t have the option to set them as sorting options, why is that?

    #498707

    Guust
    Moderator
    Post count: 29970

    Either because there is no reason to sort them, or they cannot be sorted.
    For example, why would you want to sort by free textarea, or Facebook URL?
    Is there one in particular that you’d want to sort?

    Thanks

    #498721

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Well, it’s a drop-down select field, another a check box, it will be frustrating for you to say that it’s impossible to sort them out

    #498722

    Guust
    Moderator
    Post count: 29970

    You should be able to add a SELECT to the sorting options, but not a MULTI-SELECT.
    Thanks

    #498723

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Why not a MULTI-SELECT? and which fields don’t you guys support for sorting options?

    #498728

    Guust
    Moderator
    Post count: 29970

    It is not possible to sort listings if one listing has selected 3 options in a multiselect, and another has selected only 1, and someone else has selected 4.
    Fields not possible to sort are, multiselect, textarea, URL, file upload, HTML.

    Thanks

    #498729

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Ok, now I understand

    #498730

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134
    This reply has been marked as private.
    #498741

    Paolo
    Site Admin
    Post count: 31206

    Where do you want to show rating numbers?

    Thanks

    p.s. It’d be great if you could open a new ticket for each new request and avoid going off-topic.

    #498753

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134
    This reply has been marked as private.
    #498806

    Paolo
    Site Admin
    Post count: 31206

    That is not an option, but I asked the question to the developers and they’ll let us know if there is a workaround or not after the weekend.

    Thank you

    #498815

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Ok, I really hope there is a workaround, I will appreciate big time

    #499057

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134
    This reply has been marked as private.
    #499116

    Kiran
    Moderator
    Post count: 7069

    Hello Fulvio,

    Try following PHP snippet.

    
    
    function gd_snippet_20190723_after_review_list_title() {
    	global $gd_post;
    
    	if ( $gd_post->overall_rating > 0 ) {
    		$overall_rating = geodir_format_decimal( (float) $gd_post->overall_rating, 1 );
    
    		echo '<div class="_gd-overall-rating" style="display:inline-block;margin-left:5px">' . $overall_rating . '</div>';
    	}
    }
    add_action( 'geodir_after_review_list_title', 'gd_snippet_20190723_after_review_list_title', 0 );

    Kiran

    #499139

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Thank you kiran, just a question, is there a reason the ratings number doesn’t show in the ratings widget?

Viewing 15 posts - 1 through 15 (of 18 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket