Home › Forums › General Issues › Taxonomy Issue › Reply To: Taxonomy Issue
You have some nesting issues in your code to work out.
Near the bottom of what you posted, I commented were I found one nesting error. there may be others. I caught this by cleaning up the whitespace in your code.
<?php
if ($member_group_query->have_posts()) :
?>
<!-- END SUB CATEGORY TITLE AREA -->
<div id="<?php the_ID(); ?>" class="panel-collapse collapse col-md-12">
<!-- SUB CATEGORY POSTS AREA -->
<?php
while ($member_group_query->have_posts()) :
$member_group_query->the_post();
// removed inner dive to make it easier to read
endwhile;
//there should be a </div> here before end if
endif;
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.