Change default category tab selection

I'm working on my university program's website and can't seem to make this change they want. If you visit you will see that "All Courses" is activated by default, when I'd like Fall 2014 to be the default. I've tried using jQuery to addClass "active" but it only changes the appearance (gives a red background to the Fall 2014 tab), doesn't update the page with only Fall 2014 courses.

<ul id="filters" class="clearfix">
<?php wp_list_categories(array('order' =>'DESC', 'title_li' => '', 'taxonomy' => 'course_semester', 'walker' => new Works_Walker())); ?>
<li><a href="#" data-filter="*" class="active"><?php _e('All Courses', 'framework'); ?></a></li>

Any bright ideas?


try adding this: jQuery('a[data-filter=".term39"]').click()

Tags: Jquery / Wordpress

Similar questions

What is $tab in `install_plugins_{$tab}` hook?
Goodman asked: When searching for a way to connect an action to plugin install (not activate), I saw two action hooks in plugin-install.php. one is install_plugins_{$tab} and the other is install_plugins_pre_{$tab}. Could you tell me what exactly is $tab referring to in this case? How can I associate my function to the ajax installation in this cas...
Why do some post, listed under the "Mine" Tab, and the same posts listed tunder "Published" Tab
I need some help to understand why some post are listed under "Mine" Tab and the same post listed under the "Published" Tab on the Post Page. How do I remove the other tab from the table?
HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page?
HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page?
Remove General Tab and Plugin Tab in Settings in Woocommerce
I would like specific users to only see the WooCommerce -> Settings -> Shipping menu. I've managed to remove other tabs e.g. Products, Payments, etc, but stuck on the following 2 things that I want to to accomplish: When I try to remove the GENERAL tab, it eliminates the entire Settings menu. As for the 'Order Statuses', my code just doesn't work. ...
Wp Custom menu problem: the link is opened in the new tab and meanwhile the same tab
I have problem with one wp custom menu, from Apperance > Menus i set that link to open in new tab. When i go to the web site, and click on Forum (which is button who i want to open in new tab), new tab with the forum is opened but, meanwhile in the main tab where it's supposed to be the WordPress i have the forum loaded and i must go back via butto...
Jquery text link from tab to tab using WP UI
I'm using a jquery tabs plugin for Wordpress (The plugin is downloadable at ) I have a page with 4 tabs on it, and I want a text link to take people from tab 1 to tab 4. I can add a text link to #_enquire which will take me to tab 4, but it also appends the url with #_enquire, so if you then click back to ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.