0
(使用JointsWP和地基6.2.1自定义WordPress主题)基础框架 - 以表
在接下来的页面(http://indianashrm.wpengine.com/chapters/)的问题,我有两个数据表,既不被堆叠在更小的设备和一流的。无条带也不工作。 .hover类正在工作。
这是我的代码为第一个表(我正在使用自定义职位类型的数据)。任何想法为什么表不堆叠和条纹不被删除?
<?php
$args = array (
'post_type' => 'shrm_local_chapter',
'posts_per_page' => -1,
'post_status' => 'publish',
'order' => 'ASC',
'orderby' => 'chapter_location'
);
$loop = new WP_Query($args);
?>
<h2>Local Chapters</h2>
<p>Scroll down to obtain contact information for your nearest local Indiana SHRM Chapter. Information on how to join that chapter can be found on their local web page.</p>
<table class="stacked unstriped hover">
<thead>
<tr>
<th width="50%">Name</th>
<th width="50%">Location</th>
</tr>
</thead>
<tbody>
<?php if ($loop->have_posts()) : while ($loop->have_posts()) : $loop->the_post();
$shrm_location = get_field("chapter_location");
$shrm_url = get_field("chapter_url");
$shrm_name = get_the_title();
echo '<tr>';
echo '<td><a href="'.$shrm_url.'">'.$shrm_name.'</a></td>';
echo '<td>'.$shrm_location.'</td>';
echo '</tr>';
endwhile; endif; wp_reset_postdata(); ?>
</tbody>
</table>
废话,我有错误的类名称堆栈...! @#$%^& – Brett
我已更新至最新版本的基础和固定条纹问题。包含在JointsWP安装中的版本表示6.2.1,但没有条带的类不在文件中。不知道为什么,我真的不知道为什么我没有去找班级......我认为这是理所当然的。感谢您加强和帮助。 – Brett