Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
luxia
/
inc
/
sections
/
portfolio
/
✏️
Editing: style1.php
<!-- gallery-area --> <section id="work1" class="pt-120 pb-90"> <div class="container"> <div class="portfolio "> <div class="row align-items-center mb-50 text-center"> <div class="col-lg-12"> <div class="my-masonry"> <div class="button-group filter-button-group "> <button class="active" data-filter="*"><?php esc_html_e( 'All', 'luxia' ); ?></button> <?php $portfolio_types= get_terms('portfolio_category'); foreach($portfolio_types as $portfolio) : ?> <button data-filter=".<?php echo esc_html ($portfolio->slug); ?>"><?php echo esc_html ($portfolio->name);?></button> <?php endforeach; ?> </div> </div> </div> </div> <div class="grid col3"> <?php $advanced= new wp_Query(array( 'post_type'=>'portfolio', 'posts_per_page' => $posts_per_page, )); while( $advanced->have_posts() ) : $advanced->the_post(); $terms_area = get_the_terms(get_the_id(),'portfolio_category'); $terms = array(); foreach($terms_area as $term) : $terms[] = $term->slug; $feat_image = wp_get_attachment_url( get_post_thumbnail_id() ); ?> <?php endforeach; ?> <div class="grid-item <?php echo implode(' ',$terms); ?>"> <div class="case-study-box"> <div class="case-study-img"> <a href="<?php echo html_entity_decode( esc_html( $feat_image ) ); ?>"><?php the_post_thumbnail(); ?></a> </div> <div class="case-study-content"> <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5> </div> </div> </div> <?php endwhile; ?> </div> </div> </div> </section> <!-- gallery-area-end -->
💾 Save
❌ Cancel