Php Wordpress-如何从显示中排除类别 见见我们的教练 if(category name!=coaching){output category}if(category id!=$id of coaching){output category}。但是
Wordpress-如何从显示中排除类别Php Wordpress-如何从显示中排除类别 见见我们的教练 if(category name!=coaching){output category}if(category id!=$id of coaching){output category}。但是,php,wordpress,Php,Wordpress,Wordpress-如何从显示中排除类别 见见我们的教练 if(category name!=coaching){output category}if(category id!=$id of coaching){output category}。但是我不知道如何不显示标注。。我已经完成了列表Got it Cheers再次if(category name!=教练){output category}如果教练的名称在未来发生变化会发生什么?if(category id!=$id of coach
见见我们的教练
if(category name!=coaching){output category}
if(category id!=$id of coaching){output category}
。但是我不知道如何不显示标注。。我已经完成了列表Got it Cheers再次if(category name!=教练){output category}
如果教练的名称在未来发生变化会发生什么?if(category id!=$id of coaching){output category}
干杯。但是我不知道如何不显示标注。。我已经完成了,再次干杯
<div class="small-12 columns">
<ul class="category-filters">
<?php
$args = array(
'parent' => 0,
'exclude' => '1, 9'
);
$cats = get_categories($args);
foreach($cats as $cat) {
$output =
'<li>
<input class="checkbox" type="checkbox" value="' . $cat->cat_name . '">'
. $cat->cat_name .
'</li>';
echo $output;
}
?>
</ul>
<h4>Meet our Coaches</h4>
<?php
$wpb_all_query = new WP_Query(array('post_type'=>'post', 'post_status'=>'publish', 'posts_per_page'=>-1));
if ( $wpb_all_query->have_posts() ) : ?>
<?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>
<div class="callout horizontal word-wrap"
data-category="
<?php
$cats=get_the_category();
echo $cats[0]->cat_name;
?>">
<?php the_post_thumbnail() ?>
<h5><?php the_title(); ?></h5>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>