• 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/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>

Viewing 1 replies (of 1 total)
  • Thread Starter buskerdog

    (@buskerdog)

    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…

Viewing 1 replies (of 1 total)
  • The topic ‘Using images to link to category pages’ is closed to new replies.