Hi,
I got the Pioneer WordPress theme. And I need help getting the main page featured slider to work. I was able to get the post to show, however, the images for the post dont show.
Tks for help!!!
<!-- BEGIN featured -->
<div id="featured">
<!-- begin slider -->
<div class="slider">
<?php
$tmp_query = $wp_query; $count = 0;
query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
if (have_posts()) :
while (have_posts()) : the_post(); $count++;
?>
<div id="slide<?php echo $count; ?>" class="item">
<a class="featuredimg" href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'full', 'alt="' . $post->post_title . '"'); ?></a>
<div class="text">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php echo dp_clean($post->post_content, 180); ?> [...]</p>
</div>
</div>
<?php
endwhile;
endif;
$wp_query = $tmp_query;
?>
<ul>
<?php
$tmp_query = $wp_query; $count = 0;
query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
if (have_posts()) :
while (have_posts()) : the_post(); $count++;
?>
<li<?php if ($count==1) echo ' class="active"'; ?> id="thumb<?php echo $count; ?>">
<a href="#"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
<a href="#" class="title"><?php the_title(); ?></a>
<p><?php echo dp_clean($post->post_content, 80); ?> [...]</p>
</li>
<?php
endwhile;
endif;
$wp_query = $tmp_query;
?>
</ul>
<div class="hover"></div>
</div>
<!-- end slider -->
</div>
<!-- END featured -->