• Trying to figure out how to link my featured image in a post to say… a page named image.php? This page would have a larger version with a description underneath it. Right now, the post_thumbnail is linked to the post via the_permalink().

    I dunno, does this make any sense?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter harshclimate

    (@harshclimate)

    I haven’t till you just pasted the link ?? Thanks for that. I’m not exactly sure where to add the code block that refers to:
    Post Thumbnail Linking to Large Image Size

    Right now, what I have on my index and single is this bit of code:

    <?php if ( has_post_thumbnail() ) : ?>
    	<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail_and_caption('',array('class' => '')); ?></a>
    <?php endif; ?>

    To me, adding what she has would be in the a href tag but I can’t be sure. When I tested it, it threw a fatal error :/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Linking a post_thumbnail to its own page with a larger version’ is closed to new replies.