View Single Post
Old 09-10-2014, 06:51 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,375

Quote:
Originally Posted by AmeliaG View Post
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>
__________________
Obey the Cowgod

Last edited by just a punk; 09-10-2014 at 06:52 AM..
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote