how rewrite is working in wordpress

You can best analyse the URL rewrites with the URL Rewrite Analyser which has been developed by Jan Fabry, see the following answer for more information. Furthermore you can change the structure of the permalinks under the Options –> Permalinks of the WordPress admin section.

Tabbed navigation in widget backend

I checked the markup and core WordPress code to find out how it handles categories and came to the conclusion that all the categories are get loaded on page load and at a time either All Categories or Most Used is displayed by manipulating it using jQuery(on mouse click showing and hiding category-pop & category-all … Read more

Using common slider in all sites

Do all your sub-sites use the same theme? If they do, then the most light-weight solution would be for you to hard-code the slider in your template file. This will give you the flexibility of doing whatever you want with your slides and the script you’re going to use, but at the same time it … Read more

Editing “Kahi’s Highlight Used Categories” plugin code – highlighting parent and child category in post page

Use the category ID: class KHUC { function wp_list_categories ($text) { global $post; if (is_singular()) { $categories = wp_get_post_categories($post->ID); foreach ($categories as $category_id) { $category = get_category($category_id); $category_parent = get_category($category->category_parent); $text = preg_replace( ‘#class=”([^”]*cat-item-‘.$category->cat_ID.'[^”0-9]*)”#’, ‘class=”$1 used-cat”‘, $text); $text = preg_replace( ‘#class=”([^”]*cat-item-‘.$category_parent->cat_ID.'[^”0-9]*)”#’, ‘class=”$1 used-cat-parent”‘, $text); } } return $text; } } add_filter(‘wp_list_categories’, array(‘KHUC’, ‘wp_list_categories’));