Здравствуйте.
Использую такую структуру:
<?php $postin = get_post_meta($post->ID, 'postin', true); ?>
<?php
query_posts(array ('post_type' => 'any', 'post__in'=>array($postin)));
if ( have_posts() ) : while ( have_posts() ) : the_post();?>
<div class="widget">
<a href="<?php the_permalink(); ?>"> <? the_post_thumbnail('miniheaderimg'); ?></a>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<span class="bodytext"><?php kama_excerpt("maxchar=50"); ?></span> <br />
<a href="<?php the_permalink(); ?>" target="_top" class="leftmore">Читать далее</a>
</div>
<?php endwhile; ?>
<? else:
endif;
wp_reset_query();
?>
Выводит только первый пост, а не все, указанные в произвольном поле.
В чем проблема? Как заставить выводить все записи?
Спасибо.
Проблема решена.
Может кому то пригодиться:
Решение подсказал многоуважаемый wpstarter