<ul class="footer_banner_box_container clearfix">
<div id="text-4" class="widget widget_text">
<h3 class="box_header">Our Doctors</h3>
<div class="textwidget">
<h3 id="our-docs" style="margin: 10px 20px; padding: 20px; color: #002664;">Our team includes an array of trained experts, who can make critical decisions regarding care that typically would require multiple office visits.</h3>
<br />
<ul class="bxslider">
<?php
$args = array(\'post_type\' => \'Doctors\', \'orderby\' => \'rand\');
$query = new WP_Query( $args );
?>
<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php the_permalink(); ?>">
<div class="view">
<li><?php the_post_thumbnail( array(160,225) ); ?></li>
<div class="mask">
<h4><?php the_title(); ?></h4>
</div>
</div>
</a>
<?php endif; ?>
<?php endwhile; endif; ?>
</ul>
</div>
</div>
</ul>
<ul class="footer_banner_box_container clearfix">
<div id="medicenter_contact_details-4" class="widget contact_details_widget">
<h2 class="box_header"><?php the_field(\'hospital_name\'); ?></h2>
<ul class="footer_contact_info_container clearfix">
<li class="footer_contact_info_row">
<div class="footer_contact_info_left"><?php the_field(\'hospital_address_line_1\'); ?></div>
<div class="footer_contact_info_right"></div>
</li>
<li class="footer_contact_info_row">
<div class="footer_contact_info_left"><?php the_field(\'hospital_address_line_2\'); ?></div>
<div class="footer_contact_info_right"></div>
</li>
<li class="footer_contact_info_row">
<div class="footer_contact_info_left"><?php the_field(\'hospital_phone_number\'); ?></div>
<div class="footer_contact_info_right"></div>
</li>
</ul>
</div>
<div id="footer_content_1" class="widget widget_text">
<div class="textwidget">
<p style="color: #002664;"><?php the_field(\'footer_content_1\'); ?></p>
</div>
</div>
<div id="footer_content_2" class="widget widget_text">
<div class="textwidget">
<?php the_field(\'footer_content_2\'); ?>
</div>
</div>
</ul>
在我的页脚模板中,我试图重新创建先前存在的小部件。我有一个WP\\u查询设置来调用自定义的post类型,然后我将post\\u缩略图传递给jQuery carousel。下面是另一个小部件区域,我正试图通过使用高级自定义字段来填充值,使其更具动态性。然而,当我以这种方式构造页脚模板时(必须如此),无法进行php调用以获取自定义字段值。当我在第一个footer\\u banner\\u box\\u容器的上方放置第二个footer\\u banner\\u box\\u容器时,它可以工作,但当它放置时却不能工作。可能是主题,但我真的空了。任何帮助都将不胜感激