WordPress.org

Support

Support » Themes and Templates » [Resolved] feaured image linking but I have one giant permalink

[Resolved] feaured image linking but I have one giant permalink

  • I’ve been having a lot of problems trying to get the featured image to link to the post. I finally got it but now the entire excerpt is a giant permalink

    this is the line I’m having issues with

    [please mark any code according to the forum guidelines – http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    $title = get_the_title();
    	the_post_thumbnail(array($width,$height), array('alt' => $title));

    I replaced it with

    [the code below is corrupted – please re-post it]

    $title = get_the_title();
    	?><a>"><?php the_post_thumbnail(array($width,$height), array('alt' => $title));?><?php;

    and now the image goes to the permalink and so does the excerpt
    http://www.celebrityfeast.com

    Any ideas? I’m stumped

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] feaured image linking but I have one giant permalink’ is closed to new replies.
Skip to toolbar