Adding an image to single.php…but with a twist
-
Hi there people!
Can anyone help me add an image to the single.php file so that it displays at the bottom of every post? At the moment, i just have words with a border and no image. In addition, it needs to keep the ‘get first link’ function i have at the moment (which works). The image remains the same but obviously the link changes with every post.
Here’s what i have so far:[please mark your code using the ‘code’ button]
<div align="left"> <div style="padding-left:5px; padding-right:5px; padding-bottom:10px; padding-top:10px; "> <?php $first_link = get_first_link(); ?> <a href="#" target="_blank"><img src="/images/white-avail-on-itunes.png" alt="<?php the_title(); ?> Is Available Here On The iTunes Store" /></a> </div> </div>
So in short, im after a way of getting an image to show at the bottom of every post which keeps the link attached to it.
Thank you for any help in advance ??
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Adding an image to single.php…but with a twist’ is closed to new replies.