Raindrops1.004 front-portfolio.php template has bug

Raindrops1.004 front-portfolio.php template has bug

front-portfolio.php line:40

<?php
/**
 *  Sticky Posts
 *
 */
	$args = array( 'post__in'  => get_option( 'sticky_posts' ) );
	$raindrops_posts = get_posts( $args );
?>
<div class="stickies">
<?php		
	foreach($raindrops_posts as $post){
            setup_postdata( $post );?>
		<<?php raindrops_doctype_elements('div','article');?> id="post-<?php the_ID(); ?>" <?php post_class(); ?>><?php

			the_title('<h2 class="h2 entry-title">','</h2>');
			?><div class="entry-content"><?php
			the_content();	?>
			</div>
		</<?php raindrops_doctype_elements('div','article');?>>
<?php } ?>
</div>

Please change from above to below.

<?php
/**
 *  Sticky Posts
 *
 */
 	$raindrops_get_posts_args	= array( 'numberposts' => -1, 'post_status' => 'publish' );
	$raindrops_posts			= get_posts( $args );
?>
<div class="stickies">
<?php		
	foreach($raindrops_posts as $post){
            setup_postdata( $post );?>
	<?php if( is_sticky() ){?>
		<<?php raindrops_doctype_elements('div','article');?> id="post-<?php the_ID(); ?>" <?php post_class(); ?>><?php
		
			the_title('<h2 class="h2 entry-title">','</h2>');
			?><div class="entry-content"><?php
			the_content();	?>
			</div>
		</<?php raindrops_doctype_elements('div','article');?>>
	<?php }// is_sticky()?>
<?php }//end if ?>
</div>

this bug will be fixed next versions.


コメントは受け付けていません。