my Question: I would like to display my posts like this in the loop:

Example: Show me articel with the ID1 , ID2 and ID9. Loop start { Articel I (ID1) AND Meta_values; Articel II (ID2) AND Meta_values; Articel III (ID9) AND Meta_values; }

Loop end

It is possible? How I can do that. In need it in the loop, because i would like show more metainformation from every articel.

Thanks!

link|improve this question
Can you clarify this question? Are you saying that you simply need to query three specific posts, and then display certain metadata for those posts? – Chip Bennett Oct 20 '11 at 19:44
feedback

closed as too localized by Chip Bennett, Brady Mar 1 at 18:57

This question is unlikely to ever help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. See the FAQ for guidance on how to improve it.

1 Answer

Could you not use query_posts() for this and pass in your id's?

query_posts( 'post__in' => array( 1, 2, 3 ) ); // Get posts 1, 2, and 3.
while( have_posts() ) : the_post();
  $custom = get_post_custom(); // Get custom fields for post
  the_title(); // Show the title
  echo $custom['some_custom_field'];
endwhile;
wp_reset_query();
link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.