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’;}

get_the_term: cómo mostrar custom taxonomy con link y nombre separado

if (get_the_terms($post->ID, ‘tax-dudas’)) { $tags_list = get_the_terms($post->ID, ‘tax-dudas’); foreach ($tags_list as $taxonomy_term) { $term_link = get_term_link( $taxonomy_term ); if ( is_wp_error( $term_link ) ) { continue; } $tags .= ‘<a href=”‘ . esc_url( $term_link ) . ‘”><span>’ . $taxonomy_term->name . ‘</span></a>’; } $tags.= ‘</p>’;

Uso de condicional para custom post type

<?php if ( post_type_exists(‘custom_post_type’) ): ?> <span><?php the_terms( $post->ID, ‘nombre de la taxonomia creada’, ‘ ‘, ‘ / ‘ ); ?></span> <h3><a href=”<?php echo $link; ?>”><?php $content->title(); ?></a></h3> <?php elseif ( post_type_exists(‘custom_post_type’) ): ?> <h3><a href=”<?php echo $link; ?>”><?php $content->title(); ?></a></h3> <?php else: ?> <h3><a href=”<?php echo $link; ?>”><?php $content->title(); ?></a></h3> <?php endif ?>