OK, here's what I'd like to do: I'd like it if a visitor to http://www.faberunashop.com/ had the ability to click on one of the homepage images and be directed to another site, the site of the featured vendor, versus going into a post. Is that done in the custom field or is that a CSS adjustment?
Depends on how your home page is set up. Presumably you would simply put in the URL you are wanting to redirect to. Then, in your home.php or front-page.php template you will replace the_permalink with your custom field.
So, I altered the functions.php & the index.php so that if you click on the post title you get to an external link. How do I do it to the rollover image?
Once that’s done, open your index.php file and replace the standard code for printing titles…
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
… with a call to our newly created print_post_title() function:
<?php print_post_title() ?>
Now, whenever you feel like pointing one of your posts’ titles somewhere other than your own blog, just scroll down in your post editor and create or select a custom key called url1 or title_url or url_title and put the external URL in the value box.
Ah - okay. So if you post the code for whatever is creating your home page (whether it be index.php, home.php or front-page.php) I'll be able to help you from there!
Then:
Once that’s done, open your index.php file and replace the standard code for printing titles…
… with a call to our newly created print_post_title() function:
Now, whenever you feel like pointing one of your posts’ titles somewhere other than your own blog, just scroll down in your post editor and create or select a custom key called url1 or title_url or url_title and put the external URL in the value box.
All I would have done was created a custom field, and then changed where ever it's calling the_permalink with it.
to this:
Then create a custom field called 'url' and put in the website.