Ok Here's one for all the WP Guru's out there...
Here's the situation.
I have a Press Release category... Each Post (Press Release) will have a PDF to download.
I know I can upload a PDF and create a link inside the Post, embed an image with the link, align it right etc... But I also wanted this PDF on the Index page... where it lists out each Posts... and also on the Single Post... Are you with me so far?
OK... Here's what I've done... Maybe there's a better way?
I created a Custom Field called PDF
Once you upload the PDF, you have to copy and paste the Link URL into the Custom Field
Then I placed this code in the Loop and used CSS to position it...
<?php $pdf=get_post_meta($post->ID, 'PDF', true); ?> <?php if ( $pdf ) : ?> <a href="<?php echo $pdf; ?>"><img class="pdf" title="Click to Download" src="<?php bloginfo('stylesheet_directory'); ?>/images/icon-48-pdf.png" alt="" width="60" height="60" /></a> <?php endif; ?>
You can see the finished result here:
When I migrate this site over to the live site, will the links automatically change or will I have a do a find and replace?
Will the client be able to do this update? Seems easy enough but... you know how that goes :slight_smile:
Anyone have any thoughts? Recommendations on a better process? Plugin?