Hi Tim,
To clarify, are you opting to show all “Portfolio Types” on your Portfolio Archive page?
If so, using a GB Headline wouldn’t work. It’s only meant to be used for single posts, or individual posts in the Blog/Archive pages.
You’ll need custom code to achieve this. Try adding this PHP snippet:
add_shortcode( 'insert_portfolio_types', function() {
ob_start();
// Start your PHP below
$cterms = get_terms( array(
'taxonomy' => 'portfolio_type'
) );
// var_dump($cterms);
if($cterms){
echo '<div class="custom-terms"><ul>';
foreach( $cterms as $cterm ) {
echo '<li class="custom-term"><a href="' . get_term_link( $cterm ) . '">' . $cterm->name . '</li>';
}
echo '</ul></div>';
}
// End your PHP above
return ob_get_clean();
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
This should give you a Shortcode – [insert_portfolio_types]
that insert your Portfolio types. You can now add this Shortcode through a WordPress Shortcode Block.
We’ll need custom CSS to fix how it looks afterward.