I have an array full of post IDs like $post_id = array(3,56,89,98);
Now what I have to do is just display the post details in a tabular format. How can I construct the loop for WordPress here? Please apologize my novice knowledge in WordPress and be soft. I really need some direction.
Leave a Reply
You must be logged in to post a comment.
Actually I think there’s something wrong with Umesh’s answer.
Instead of:
It should be:
Right?
i have also started learning php all you need to do something like
Edit
To construct the loop, you should be able to use the query_posts function. Something like
query_posts( array( 'post__in' => $post_id ) );
should do the trick.
The parameters are outlined in the WP_Query page of the codex.