Order By Function Excluding Latest Entries (1 post)

  1. lltgroup
    Posted 3 years ago #

    I have an orderby function integrated into a website to sort 'Designers' in the second level main pages (seen here when you click the first teal dropdown called 'select DESIGNER'). The problem is that for some reason it has everything alphabetized until a random point after designer 'YSA Makimo'. Everything added after YSA Makimo was is not being alphabetized in the list. Below is the entire code that controls the list...I am at a loss for words on what is going on!

    function widget($instance, $args) {
    $designers = get_categories(array(
    'taxonomy' => 'designer',
    'hide_empty' => false,
    'orderby' => 'term_group'));
    $this->category_list('<span>Select</span>Designer', $designers);

    Any help appreciated!

    PS when I change the orderby to title, etc. it alphabetizes the entire list parent and child entries therefore moving them to go under the wrong parents.

Topic Closed

This topic has been closed to new replies.

About this Topic