Quote:
Originally Posted by AmeliaG
An of these solutions put the big pics on HTML pages where the pic can then be linked to the sponsor? Basically, like Arylia or UUGallery when they worked.
|
Can be done by means of altering your WP theme. You just have to modify the template which displays the gallery images (attachment.php).
There must be a code like this:
Code:
<div class="attachment-image"><a href="<?php echo wp_get_attachment_url(); ?>"><img src="<?php echo wp_get_attachment_url(); ?>" alt="<?php the_title_attribute(); ?>" /></a></div>
Let's consider that your sponsor link is located in the "paysite" custom field. In this case the code above must be altered this way:
Code:
<div class="attachment-image"><a href="<?php echo get_post_meta($post->ID, 'paysite', true); ?>"><img src="<?php echo wp_get_attachment_url(); ?>" alt="<?php the_title_attribute(); ?>" /></a></div>
