Post loop refuses to work?
-
I have a post loop made to query specific posts IDs. But it refuses to work. Do any of you know what I can do to make this work?
Also has anyone else noticed how hard it has become to find anything on Google?
<?php $post_id = array(483,486); $posts = get_posts( array( 'post_type' => 'post', 'post__in' => $post_id ) ); foreach( $posts as $post ) : setup_postdata($post); ?> <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1> <a class="thumb" href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '" class="hthumb"'); ?></a><?php the_excerpt(45); ?><a href="<?php the_permalink(); ?>" class="more">Read More..</a><div style="clear:both;"></div> <?php endforeach; ?>
[closed as duplicate – continue with the original topic http://wordpress.org/support/topic/post-loop-for-specific-post-ids?replies=5#post-3248659 ]
- The topic ‘Post loop refuses to work?’ is closed to new replies.