Hi There, I have 3 masonry blogs one wordpress default and two cpt blogs. Two works perfect but i cat get the third working. I use the code below. Can you help me out.
add_filter('generate_blog_masonry','generate_blog_enable_post_type_masonry');
function generate_blog_enable_post_type_masonry()
{
// Check page template by file name
if ( is_page_template('sponsoren-template.php') )
return 'true';
// Check if blog
if ( is_home() )
return 'true';
// Otherwise, disable it
return 'false';
}
add_filter('generate_blog_activate_masonry','generate_blog_activate_page_template_masonry');
function generate_blog_activate_page_template_masonry()
{
// Check page template by file name
if ( is_page_template('sponsoren-template.php') )
return 'true';
// Check if blog
if ( is_home() )
return 'true';
// Otherwise, enable it
return 'false';
}