• So in the codex help section there a code example showing how to show an image for current category with folowing code:
    <?php
    foreach((get_the_category()) as $category) {
    echo ‘<img src=”https://example.com/images/&#8217; . $category->cat_ID . ‘.jpg” alt=”‘ . $category->cat_name . ‘” />’;
    }
    ?>

    How could I make this image a link to category as well …
    I have tried make possible methods but nothing seems to be working for me … Does someone have any input on this issue ?
    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Make Category Image Also A Link’ is closed to new replies.