Created
April 30, 2013 00:08
-
-
Save dherbold/5485773 to your computer and use it in GitHub Desktop.
why don't (doesn't) this work?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="indent"> | |
<?php include_once('homepage-gallery.php') | |
$id = '222'; | |
$existing_attachments = attachments_get_attachments($id); | |
if( is_array($existing_attachments) && !empty($existing_attachments) ) { | |
$attachment_index = 0; | |
echo '<ul>'; | |
foreach ($existing_attachments as $attachment) { | |
$attachment_index++; | |
?> | |
<li><?php echo wp_get_attachment_image( $attachment['id'], array(355, 160), 1 ); ?></li> | |
<?php }}?> | |
<?php echo '</ul>'; ?> | |
</div> |
It's undefined. I'm vague on what needs to be written to make it defined.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is what's causing the infinite loop on the home page. WTF?