aracılığıyla böyle görünen bir özel Yayın türüne aracılığıyla bir döngü çalıştırıyorum:Döngü sadece belirli kimlikleri
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<!-- START MEMBER LOOP -->
<?php
query_posts(array(
'post_type' => 'mitarbeiter',
));
// Get the members
while (have_posts()) : the_post();
?>
<div class="col-md-6">
<div class="well">
<div class="row">
<div class="col-xs-5">
<?php
// Display the image
$image = get_field('portraitfoto');
if (!empty($image)): ?>
<img class="sidebar-img" src="<?= $image['url']; ?>" alt="<?= $image['alt']; ?>" /><br />
<?php endif; ?>
</div><!-- /.col-xs-5 -->
<div class="col-xs-7">
<h2><?php the_title(); ?></h2>
<p><?= the_field('funktion'); ?><br>
<?= the_field('abteilung'); ?><br>
<?= the_field('telefon'); ?><br>
<a href="mailto:<?= the_field('email'); ?>"><?= the_field('email'); ?></a></p>
</div><!-- /.col-xs-7 -->
</div><!-- /.row -->
</div><!-- /.well -->
</div><!-- /.col-md-6 -->
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<!-- END MEMBER LOOP -->
<?php endwhile; else: ?>
<?php endif; ?>
Bu tüm mesajları verir ama nasıl belli kimliklere sahip Mesajları alabilirim? Belirli kimlikleri ile mesajları almak için
query_posts(array('post__in' => array(149,151,161,163)));
kullanılarak 163.
Bu soruyu off-topic olarak kapatmak için oy veriyorum çünkü bu bir http://wordpress.stackexchange.com/questions/87613/wp-query-query-posts-by-ids-from-array kopyasıdır ve bir google arama – PeeHaa