Using images to link to category pages
-
I wanted to put a full bit of html in my category names (like
<img src="path/lastname_thumb.jpg" />
) so that a page like the following would have lovely thumbs for a menu and (also) would sort by last name: https://tinyurl.com/ylpvhpThe Name fields for categories won’t take HTML, apparently, even though page titles will. Any suggestions?
This is what I have now:
<?php if (is_category()) { $posts = query_posts($query_string . "&orderby=post_name&order=asc"); } ?>
<ul class="menubox"><?php wp_list_cats('sort_column=name&optioncount=0&child_of=2&use_desc_for_title=0'); ?></ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using images to link to category pages’ is closed to new replies.