• Resolved pikaya

    (@pikaya)


    Hi
    Great plugin!
    I’ve constructed categories and images like this:
    <div style=” clear:both;display:block;width:100%; border:red solid 1px; min-height:120px; margin-bottom:20px”>
    <ul style=”float:right; “>
    <li style=”list-style:none; “>
    <?php wp_list_categories(‘walker=object&style=list&orderby=name&exclude=12&title_li=’); ?>

    <div style=”clear:both;”></div>
    </div>
    <div><img src=”<?php echo z_taxonomy_image_url(NULL, array(300, 250)); ?>” /></div>

    Any Idea how to add the category link to the image?

    thanks
    pikaya

    https://wordpress.org/plugins/categories-images/

Viewing 1 replies (of 1 total)
  • Plugin Author Zahlan

    (@elzahlan)

    Hey,

    wp_list_categories will display a list of the categories only I mean without any images so you have to do it manual, so instead please use get_categories() funciton, please check the 1st example about loop on categories in the documentation

Viewing 1 replies (of 1 total)

The topic ‘Link image to the category’ is closed to new replies.