StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-20-2008, 04:24 PM
Brian Gardner's Avatar
Brian Gardner Brian Gardner is offline
Administrator
 
Join Date: Sep 2008
Location: Chicago, IL
Posts: 5,360
Default Re: Link featured image to any URL

You need to go into the index.php file and change this code:

Code:
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /></p><?php else: ?>
to this code:

And then use "url" minus the quote marks as the custom field key for the url you want the image to be linked to. You'll also need to replace the code on the other php files as well.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link a featured image on homepage to a page not post? sologoodenglish General Discussion 3 11-08-2008 07:25 PM


All times are GMT -5. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.