WordPress.org

Ready to get started?Download WordPress

Forums

Trying to Code Permalink with Slideshow Graphic (1 post)

  1. Aaress
    Member
    Posted 3 years ago #

    Hi,

    I'm working on a theme that has a slideshow on the home page, and I'd like to link each image back to the post's permalink. Here's the current code

    <div class="wrap">
    
                <img id="current-slide" class="above" alt="" width="960" height="460" src="<?php _post_thumb('slideshow_image', 960, 460, SLIDESHOW_PLACEHOLDER); ?>" />
    
                <img id="slideshow-video" alt="" src="<?php der_theme_path('slideshow-video.png'); ?>" width="93" height="98" usemap="#slideshow-video-map" />
    
                <a id="slideshow-video-trigger" style="position: absolute; visibility: hidden;" href="#"></a>
    
                <span id="slideshow-video-reflection" ><img alt="" src="<?php der_theme_path('slideshow-video.png'); ?>" /></span>
    
            </div>

    I tried adding in the permalink code here, but it only created a link on the first image.

    <a href="<?php the_permalink(); ?>"><img id="current-slide" class="above" alt="" width="960" height="460" src="<?php _post_thumb('slideshow_image', 960, 460, SLIDESHOW_PLACEHOLDER); ?>" /></a>

    Any help would be much appreciated! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic