I wan’t to apply masonry layout to custom post type, which I have created as portfolio. I have followed the steps that was listed on the forum. But still layout is not applied.
Let me tell you what I have did.
1. Created template file named it as => masonry-portfolio.php
2. then add following code to functions.php file
$type = get_post_type();
// If we're on the "books" post type, enable masonry
if ( 'portfolio' == $type )
// Check page template by file name
if ( is_page_template('masonry-portfolio.php') )
// Otherwise, disable it
3. I have wrote down simple while loop code in masonry-portfolio.php