• Here is my “standard” post type code

    <?php
       if(!is_single()){
          if ( has_post_thumbnail()) { the_post_thumbnail('thumbnail');}
       }
    ?>

    I want to make it clickable to post.

    Thank you;)

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

    (@slaterbeckham)

    I’ve just made my “image” post type clickable by adding
    <a href="<?php the_permalink() ?>"></a>.
    Here is my “image” post type look like.

    <?php if(has_post_thumbnail()) {  ?>
    
        <div class="entry-media blog-media">
    		<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('blog-thumb'); ?></a>
    	</div> <!-- END .entry-media -->
    
    <?php  } ?>

    Now, I want to make my “standard” post type image clickable. As told before now i want to edit my “standard” post type and make it clickable.

Viewing 1 replies (of 1 total)
  • The topic ‘How to make my image clickable?’ is closed to new replies.