How to Isotope filtering on Custom Post Type where i am wrong please guide me

<div class=”container”>
<div class=”row”>
<div class=”gallery col-lg-12 col-md-12 col-sm-12 col-xs-12″>
<h1 class=”gallery-title”>Portfolio</h1>
</div>

<?php $loop = new WP_Query( array( ‘post_type’ => ‘our_work’,’order’ => ‘Desc’) );
?>
<div align=”center”>

<?php
$categories = get_categories();
foreach($categories as $category){

echo'<button class=”btn btn-default filter-button” data-filter=”.’.$category ->slug.'”>’.$category->name.'</button>’;

}
?>

</div>
<br/>
<?php while ( $loop->have_posts() ) : $loop->the_post();

?>
<div class=”gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter “>
<img src=”<?php the_post_thumbnail_url(); ?>” class=”img-responsive”>
</div>
<?php endwhile; ?>
</div>
</div>

Read more here:: How to Isotope filtering on Custom Post Type where i am wrong please guide me

Leave a Reply

Your email address will not be published. Required fields are marked *