Skip to content

Instantly share code, notes, and snippets.

@teresko
Forked from janisdonis/gist:e1ddd052f02d23cdd316
Last active August 29, 2015 14:16
Show Gist options
  • Save teresko/8bd572cc40baef6304e5 to your computer and use it in GitHub Desktop.
Save teresko/8bd572cc40baef6304e5 to your computer and use it in GitHub Desktop.
<?php
$tempList = [];
foreach( $images as $image ) {
$tempList[] = "<img src='{$image['sizes']['large']}'>";
}
?>
<script id="images2<?php echo get_the_ID(); ?>" type="text/cycle">
<?php echo json_encode($tempList); ?>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment