Retrieve the link url for the thumbnail
-
hi there,
I’m using the following code inside my loop to display portfolio images:<a href="<?php wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) ); ?>"><?php the_post_thumbnail( 'single-post-thumbnail' ); ?></a>
The image appears fine, but I can’t retrieve the link url. The code
<?php wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) ); ?>
is obviously wrong.Anyone know what it should be?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Retrieve the link url for the thumbnail’ is closed to new replies.