Wordpress Image Code Box

Discussion in 'PHP' started by DamDanger, May 6, 2008.

  1. #1
    I am trying to put in an image code box to make it easy for people to grab images for their sites. I am trying to make it just like the one below the image on http://icanhascheezburger.com/

    I have most of it but i can not find the php snippet to pull the src/image from the individual post and put it in the box

    <textarea onClick=”this.select();” style=”width:350px;height:100px;font-family:tahoma;font-size:12px;” readonly><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>“><img <?php echo $src ?>" alt="<?php the_title(); ?>" /></a></textarea>
    PHP:
    The
    <?php echo $src ?>
    PHP:
    is the only problem and i can not for the life of me find the proper snippet of code to pull from individual posts.
     
    DamDanger, May 6, 2008 IP
  2. DamDanger

    DamDanger Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The code box is pretty simple but i cannot find the right peice of code, and i really need it for one of my sites so i can finish it up
     
    DamDanger, May 6, 2008 IP