Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('foxyshop_category_children_write', 'my_foxyshop_category_children_write', 10, 2);
- function my_foxyshop_category_children_write($liwrite, $term) {
- global $taxonomy_images_plugin, $post;
- if (substr($term->name,0,1) == "_") continue;
- $url = get_term_link($term, "foxyshop_categories");
- $liwrite = "";
- $liwrite .= '<li id="foxyshop_category_' . $term->term_id . '">';
- $liwrite .= '<h2><a href="' . $url . '">' . $term->name . '</a></h2>';
- if ($term->description) $liwrite .= apply_filters('the_content', $term->description);
- if (isset($taxonomy_images_plugin)) {
- $img = $taxonomy_images_plugin->get_image_html("thumbnail", $term->term_taxonomy_id);
- if(!empty($img)) $liwrite .= '<a href="' . $url . '" class="foxyshop_category_image">' . $img . '</a>';
- }
- $liwrite .= '</li>'."\n";
- return $liwrite;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement