Generatepress: Mostrar custom post type modo masonry

add_filter('generate_blog_masonry','generate_blog_enable_post_type_masonry');add_filter('generate_blog_masonry','generate_blog_enable_post_type_masonry');function generate_blog_enable_post_type_masonry(){        $type = get_post_type();
        // If we're on the "books" post type, enable masonry if ( 'asepeyo_faqs' == $type ) return 'true';
 // Check page template by file name if ( is_page_template('archive-asepeyo_faqs.php') ) return 'true';         // Otherwise, disable it return 'false';}

Deja un comentario