I have a slider that links the images shown to the permalink page. I'm trying to change the php_the_permalink to one that would enable the images to link up with the link url of that image instead (which at the moment I have linked to another post)
here's the current php:
<div class="slide" style="display: none;">
<?php if ( wpop_get_option( 'slider_caption' ) == 'yes' ): ?><h2><?php the_title(); ?></h2><?php endif; ?>
<a href="<?php the_permalink(); ?> " title="<?php the_title(); ?>"><?php the_post_thumbnail( 'single-post-thumbnail', array( 'title' => the_title( '', '', false ) ) ); ?></a>
</div>
I know putting <?php wp_get_attachment_url( $id ); ?> on the " <a href " does not work as I don't believe this is the right code to retrieve the attachment image link (I dont mean the image url btw but the custom link you would put in an attachment image)
Any help would be appreciated! Thanks.