In working on the website for the Allied Arts Foundation, I was able to take advantage of WordPress’ post to create dynamic content for my website.

First, on the home page I use the post’s  excerpt and featured image to feed the slideshow:

global $post;
$featured_posts = query_posts('category_name=Featured Artists&orderby=ID&order=ASC');
foreach( $featured_posts as $post ) {
<div style="width:960px;">
<h2><?php the_title() ?></h2>
<?php $sub_head = get_post_custom_values('excerpt-subhead', $post->ID); ?>
<h3><?php echo $sub_head[0]; ?> </h3>
<?php the_excerpt() ?>
<p><a href=" <?php echo get_permalink($post->ID); ?>"><span>read more</span></a></p>
</div><!-- .homeleft -->
if (has_post_thumbnail()) {
echo get_the_post_thumbnail($post->ID, $size='full');
</div><!-- .homeright -->
</div><!-- .hometop -->
<?php }

I also have a custom category template for my “artists” category (category-3.php). On this page, I take advantage of the jCarousel plugin:

// Configuration goes here

And then this html and php:

<ul id="mycarousel">
<?php while ( have_posts() ) : the_post(); ?>
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID,
'numberposts' => 999
$attachments = get_posts($args);
if ($attachments) {
foreach ($attachments as $attachment) {
//echo apply_filters('the_title', $attachment->post_title);
//the_attachment_link($attachment->ID, false);
$custom_image = '<li><a href="'. get_permalink($post->ID).'">'.wp_get_attachment_image($attachment->ID, $size="thumbnail", $icon = false).'</a></li>';
echo $custom_image;
<?php endwhile; // End the loop. Whew. ?>

Of course, there is all of the CSS needed for the carousel. Most of this is shipped with the plugin so I just need to modify it to meld with the look and feel of my theme.