WordPress.org

Support

Support » How-To and Troubleshooting » Order By Function Excluding Latest Entries

Order By Function Excluding Latest Entries

  • 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.

  • The topic ‘Order By Function Excluding Latest Entries’ is closed to new replies.