我的php技能非常有限,我几乎被以下问题所困扰。
为什么我的自定义字段(位于底部)没有显示在posts块之后?下面是我的代码:
<!-- 3 COLUMN POSTS -->
<!-- FIRST COLUMN BELOW -->
<div class="row"><!-- Foundation .row start -->
<div class="large-12 medium-12 columns post-column">
<h3>What\'s Going On</h3>
</div>
<div class="homepage-posts">
<div class="large-4 medium-4 columns post-column">
<h2>Upcoming Events</h2>
<?php
$catquery = new WP_Query( \'cat=8&posts_per_page=1\' );
while($catquery->have_posts()) : $catquery->the_post();
?>
<?php endwhile;?>
<div class="news-excerpt"><p><?php echo excerpt(100); ?></p>
</div>
<p><?php echo substr(strip_tags($post->post_content), 0, 150);?> <a href="<?php the_permalink() ?>" rel="bookmark">Read more »</a></p><br><br>
</div>
<!-- SECOND COLUMN BELOW -->
<div class="large-4 medium-4 columns post-column">
<h2>Recent Jobs</h2>
<?php
$catquery = new WP_Query( \'cat=9&posts_per_page=5\' );
while($catquery->have_posts()) : $catquery->the_post();
?>
<?php endwhile;?>
<div class="news-excerpt"><p><?php echo excerpt(100); ?></p>
</div>
<p><?php echo substr(strip_tags($post->post_content), 0, 150);?> <a href="<?php the_permalink() ?>" rel="bookmark">Read more »</a></p><br><br>
</div>
<!-- THIRD COLUMN BELOW -->
<div class="large-4 medium-4 columns post-column">
<h2>Resources</h2>
<?php
$catquery = new WP_Query( \'cat=10&posts_per_page=5\' );
while($catquery->have_posts()) : $catquery->the_post();
?>
<?php endwhile;?>
<div class="news-excerpt"><p><?php echo excerpt(100); ?></p>
</div>
<p><?php echo substr(strip_tags($post->post_content), 0, 150);?> <a href="<?php the_permalink() ?>" rel="bookmark">Read more »</a></p><br><br>
</div>
</div>
</div>
<div class="row">
<?php the_field(\'about_blurb\'); ?>
</div>