Whats the difference?
$posts_array = get_posts("post_type=slider&posts_per_page=-1&post_status=publish");
foreach ( $posts_array as $post ) :
vs
query_posts("post_type=slider&posts_per_page=-1&post_status=publish");
while ( have_posts() ) : the_post();
foreach ( $posts_array as $post ) :
vs
query_posts("post_type=slider&posts_per_page=-1&post_status=publish");
while ( have_posts() ) : the_post();
Comments
Post a Comment