Home › Forums › Other › WordPress – Broken Images › Re: WordPress – Broken Images
November 29, 2011 at 2:10 pm
#91534
TheDoc
Member
I’ve never seen multiple queries in a single loop like that. That’s probably what is causing the custom fields to go wonky. Here’s my version of your template:
What We Do
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
" class="button">View More
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
" class="button">View More
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
" class="button">View More
Note that I’m resetting the query after each loop.
Also, I’ve removed the custom fields altogether, since I really don’t see why you want to use them when you can just link directly to the image in your theme’s folder.
If you need to link to a custom field, don’t combine the template directory code with the custom field code, I’m sure that was causing some issues as well.