Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/252.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Wordpress-如何从显示中排除类别 见见我们的教练 if(category name!=coaching){output category}if(category id!=$id of coaching){output category}。但是_Php_Wordpress - Fatal编程技术网

Php Wordpress-如何从显示中排除类别 见见我们的教练 if(category name!=coaching){output category}if(category id!=$id of coaching){output category}。但是

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

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 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>