<?php

/**
 * Theme Name: ESchool
 * Theme URI: http://demo.com/eschool
 * Author: demo.com
 * Author URI: http://demo.com
 * Description: Themes Is WordPress Theme Market
 * @package eschool
 */
get_header();
global $codedokan;
?> 



<?php				
						$obj = get_queried_object();
						$categroy_name = $obj->name;
						?>            
                	 
					<!--================================
							photo Gallry-Page-start
                      ===============================-->        
   <div class="photo-page">
   
   <div class="row">              
                        <div class="col-lg-12 col-md-12">
                            <div class="video-p-title">
                               <?php echo $categroy_name;?> 
                                <div class="icon-class">
                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/images/icon-image.png" alt="">
                                </div>
                            
                            </div>
                        </div>
                    </div>
					
					
       <div class="container">
            <div class="row">
                
				<?php if(have_posts()) : while(have_posts()) : the_post();?>
				
				<div class="codedokan-3 codedokan-m2">
                    <div class="photo-gallery-wrpp">
                        <div class="photo-image">
                            <a href="<?php echo get_post_meta(get_the_ID(),'gallery_image', true); ?>" class="gallery"><img src="<?php echo get_post_meta(get_the_ID(),'gallery_image', true); ?>" alt="">
                            </a> 
                        </div>
                        <div class="photo-title">
                            <?php the_title() ?>
                        </div>
                    </div>
                </div>                             
                
				<?php endwhile; endif; ?> 
  
                
            </div>
			
			 <div class="row">
						 <div class="col-lg-12 col-md-12"><?php wp_bootstrap_pagination(); ?></div>
						</div>
						
       </div>
   </div>
					<!--================================
							Archive-Page-End
                      ===============================-->
	        
       
<?php
get_footer();
?>    