• http://ima-mfa.hunter.cuny.edu/current-courses/
    On the site above, I’d like to make sure that the last category gets the class “active” so that when the page loads, those items are shown first. Here is my code:

    <ul id="filters" class="clearfix">
    <?php wp_list_categories(array('show_option_all' => 'Show All Courses', 'orderby' => 'ID', 'order' =>'ASC', 'title_li' => '', 'taxonomy' => 'course_semester', 'walker' => new Works_Walker())); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter graysonearle

    (@graysonearle)

    It seems that giving it the class is not enough. It needs to be “activated” as well, which is traditionally done with a mouse click. .click() is not doing the trick, either.

Viewing 1 replies (of 1 total)
  • The topic ‘activate and filter by last item in wp_list_categories ?’ is closed to new replies.