Skip to content

Instantly share code, notes, and snippets.

@dherbold
Created May 1, 2013 20:30
Show Gist options
  • Save dherbold/5498123 to your computer and use it in GitHub Desktop.
Save dherbold/5498123 to your computer and use it in GitHub Desktop.
kitchell.com: image slide show glitch'n. Images seem to load, but upon scrolling, go to white. there is a very slight background image you can see just as you click on slide thumbnail #2. It slides of the left hand side of the image area upwards and white covers the rest. I'm unsure of where this whole slide show is writing from... like which fi…
<div id="my-folio-of-works" class="prev_img svwp">
<ul>
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$args = array(
'post_parent' => 222,
'post_type' => 'attachment'
);
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
echo '<li>';
echo wp_get_attachment_image($attachment->ID, array(355, 160), 1 );
echo '</li>';
}
}
endwhile; endif; ?>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment