supersized js for wordpress

Supersized js plugin used with wordpress feature image. Example @ houseofcamellia.com/wp-content/themes/camellia2012/splash.php

<?php $stack = array();
query_posts($query_string.'&cat=16');
if (have_posts()) : while (have_posts()) : the_post();

$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
array_push($stack,"{image : '".$feat_image."', title : 'image', thumb : '', url : '/homepage'}");
endwhile; endif; wp_reset_query(); ?>

<?php
//place array inside $.supersized()
echo implode(",", $stack);
?>
Advertisements