Can I grab the URL link from an uploaded image?
-
The idea is one big box that contains a thumbnail image and title. Click anywhere on the big box and off you go. ie click the image, text or background.
Can I grab the external URL from the uploaded image? I want to make it dead simple for the authors to input that URL. I was thinking they could upload an image and input the external URL into the “link URL” when they upload the image. If I was then able to grab that I could use that as my box and text url.
I think the code goes something like this:
<?php query_posts('category_name=press'); global $more; // set $more to 0 in order to only get the first part of the post $more = 0; // the Loop while (have_posts()) : the_post(); ?> <div id="pressEntry"> <a href="#"><!-- How do I get the link? Can it be taken from the image information --> <div id="title"><?php the_title(); ?></br></a></div> <?php the_content(''); ?> </a> </div><!-- close press entry --> <?php endwhile; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can I grab the URL link from an uploaded image?’ is closed to new replies.