Follow the steps below to change the behavior of SimpleFolio on the portfolio page to link to your portfolio site from “Small Preview Image” and Post Title (client name) instead of the single post page.
Start by adding a custom field to your post called “link”
Next modify the “template-portfolio.php” file in /<root>/wp-content/themes/simplefolo
Line 48:
$thumb = get_post_meta($post->ID, 'thumb-small', true); if (empty($thumb)) { continue; } else { ?> <div> <a href="<?php the_permalink(); ?>"><img src="<?php echo $thumb; ?>" alt="<?php the_title() ?>" /></a> <h2><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h2> <p><?php the_content_limit($limit_text, ''); ?></p> </div>
Updated
$thumb = get_post_meta($post->ID, 'thumb-small', true); $link = get_post_meta($post->ID, 'Link', true); if (empty($thumb)) { continue; } else { ?> <div> <a href="<?php echo $link; ?>" target="_blank"><img src="<?php echo $thumb; ?>" alt="<?php the_title() ?>" /></a> <h2><a href="<strong><?php echo $link; ?></strong>" target="_blank"><?php the_title() ?></a></h2> <p><?php the_content_limit($limit_text, ''); ?></p> </div>