I've an assortment filled with publish IDs like $post_id = array(3,56,89,98);
Ok now what I must do is simply display the publish particulars inside a tabular format. How do i construct the loop for Wordpress here? Please apologize my novice understanding in Wordpress and become soft. I truly take some direction.
i've also began learning php all that you should make a move like
foreach ($post_id as $id) {
// do what ever you want to do here
}
Edit
<?php
$post_id = array(3,56,89,98);
$posts = get_posts( $post_id);
foreach( $posts as $post ) :
setup_postdata($post); ?>
// you can call use post data inside here like
<h2 class="title"><?php the_title(); ?></h2>
<?php endforeach; ?>
To create the loop, you need to have the ability to make use of the query_posts function. Something similar to
query_posts( array( 'post__in' => $post_id ) );
should have the desired effect.
The parameters are layed out within the WP_Query page from the codex.