Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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