Home › Forums › Front-end Issues › Display all posts with special treatment for relationships › Reply To: Display all posts with special treatment for relationships
I tried this, but no luck. There are 12 $values.
$noImpact = new WP_Query(
array(
'numberposts' => 12,
'post_type' => 'values',
'post__not_in' => array($impact_IDs_comma)
)
);
while ($noImpact->have_posts()) : $noImpact->the_post(); ?>
<h4><strong><a href="<?php echo get_permalink(); ?>" class="text-disabled">
<i class="fui-check-inverted text-disabled"></i>
<?php the_title(); ?></a></strong></h4>
My list of $values post_objects of $strategies is 7 items long. The list that should only contain unrelated $values is 10 items long, which I don’t understand. I thought it would either be 5 items (good) or 12 (bad) but not 10 (weird).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.