Explorar o código

changing reset to wp_reset_postdata

thanks @Tarendai
Eddie Machado %!s(int64=12) %!d(string=hai) anos
pai
achega
778087b4e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      library/bones.php

+ 1 - 1
library/bones.php

@@ -245,7 +245,7 @@ function bones_related_posts() {
             <?php echo '<li class="no_related_post">' . __( 'No Related Posts Yet!', 'bonestheme' ) . '</li>'; ?>
 		<?php }
 	}
-	wp_reset_query();
+	wp_reset_postdata();
 	echo '</ul>';
 } /* end bones related posts function */