Using images to link to category pages (2 posts)

  1. buskerdog
    Posted 9 years ago #

    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: http://tinyurl.com/ylpvhp

    The 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>

  2. buskerdog
    Posted 9 years ago #

    Jeez, why can't I figure this out? I want to use images to link to the subcategories and I want to alphabetize by last name. All this would be fine if I could just put URLs to the images in the category names. I've been looking for where I might be able to hack that but I can't figure it out...

Topic Closed

This topic has been closed to new replies.

About this Topic