sorting categories list on homepage alphabetically

Discussion in 'ClassiCraft WordPress Theme' started by varunsuhag, Sep 26, 2017.

  1. varunsuhag

    varunsuhag New Member

    Joined:
    Sep 11, 2017
    Messages:
    3
    Likes Received:
    0
    how do i sort category list on hompage alphabetically.
     
  2. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Hello,

    The homepage listing is already displayed as alphabetically. Will you please elaborate your query with the help of edited screenshots, so that we can deliver you an exact and appropriate solution to you.

    Looking forward to hearing from you.

    Regards,
    Akbar
    InkThemes.com
     
  3. varunsuhag

    varunsuhag New Member

    Joined:
    Sep 11, 2017
    Messages:
    3
    Likes Received:
    0
    Screenshot at 2017-09-28 14:40:17.png
    Screenshot at 2017-09-28 14:45:52.png

    see screenshot, categories are not displayed alphabetically, i want to display in alphabetically order column wise, i.e. on first column Aircraft then Avionics and so on.
    i tried editing cc_cat_menu_drop_down() function by editing the line
    Code:
    $cats = get_terms( CUSTOM_CAT_TYPE, 'hide_empty=0&hierarchical=1&pad_counts=1&show_count=1&order=ASC&orderby=id' );
    by replacing orderby=id with name;
    this solves the problem but my subcategories gets all scrambled up
    as shown in screenshot
    Screenshot at 2017-09-28 14:49:41.png
     
  4. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Hi,

    We need WordPress admin credentials to configure it.
    Kindly send the below-mentioned credential details at [email protected] along with the thread link.

    WordPress Website URL: -
    WordPress Username: -
    WordPress Password: -

    We will do the needful.

    Regards,
    Akbar
    InkThemes.com
     

Share This Page