• Resolved johnlowsg

    (@johnlowsg)


    Hi,

    I’m trying to figure how to do a multiple sort on the listing page to display the results like this…

    Order by: Zip ASC, Title ASC

    Example:
    Zip Title
    123 ABC
    123 DEF
    456 ACF…

    I’m a newbie, and have tried to do this in category.php:

    ‘meta_key’ => ‘_lddlite_postal_code title’,

    and have changed the default sort to Zip in Settings.

    Would greatly appreciate your patience and kindness in sharing your expert knowledge.

    Thanks & regards
    John Low

    https://www.ads-software.com/plugins/ldd-directory-lite/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author LDD Web Design

    (@lddwebdesign)

    You should be able to use the shortcodes to display the listings by multiple sort options. In your example the correct code should be:

    [directory list_order_by="zip" list_order="asc" list_order_by="business_name" list_order="asc"]

    This should display the posts in the correct order in each category.

    Other sort settings include:
    Category:
    cat_order_by=”xxx” : id , slug , title , count

    Featured Lisdting
    fl_order_by=”xxx” : business_name , zip , area , category , random

    Listings:
    list_order_by=”xxx” : business_name , zip , area , category , random

    Thread Starter johnlowsg

    (@johnlowsg)

    Much thanks. Got it ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple sort on the listing page’ is closed to new replies.