   <?php
/**
 * Theme Name: EduCare
 * Theme URI: http://demo.com/educare
 * Author: demo.com
 * Author URI: http://demo.com
 * Description: Themes Is WordPress Theme Market
 * @package eschool
 */
 global $codedokan;
 ?> 
 
  <?php 
								$count_posts = wp_count_posts( 'brands' )->publish;
								if ($count_posts == 0){
									get_template_part( 'template-parts/html/ourbrand' );
								}else{
								?>
       
                    <!--=========codedokan==============
                            Client section Start
                    =============codedokan=============-->    
        <section class="client-section">
            <div class="container">
                <div class="row">                    
                    <div class="col-lg-12 col-md-12">
                        <div class="clinet-active owl-carousel">
                            
							<?php 
									$code_dokan = new WP_Query(array(
										'post_type' => 'brands',
										'offset'     =>0,
										'order'     => 'ASC',
									));
									while($code_dokan->have_posts()) : $code_dokan->the_post(); ?>
									
							<div class="clinet-wrpp">
                                <figure class="clinet-image">
                                    <a href="<?php echo get_post_meta(get_the_ID(),'brands_img_link', true); ?>">  <img src="<?php echo get_post_meta(get_the_ID(),'brands_image', true); ?>" alt="">  </a> 
                                </figure>
                            </div>
                           <?php endwhile;?>


                        </div>
                    </div>

                </div>
            </div>
        </section>

 <?php } ?>