Support » Themes and Templates » Need Help getting Featured Slider ot work

  • gfhdhgk

    (@andrecampbell)


    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. Below is a snippet of the code used in the part used for the slider.

    Thanks, you help is greatly appreciated.

    The Pioneer theme can seen here.
    http://bodegazine.com/free-pioneer-magazine-theme/

    <!-- 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 -->
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need Help getting Featured Slider ot work’ is closed to new replies.