Archived topic
Blog Addon column layout
1 reply · Started by Xavi Colomer on May 10, 2016
Viewing posts 1–2 of 2
Hi Tom,
its possible to implement column layout in a custom post type archive template?
thanks
It should be, try this:
add_filter( 'generate_blog_columns','generate_custom_post_archive_columns' );
function generate_custom_post_archive_columns()
{
if ( is_post_type_archive( 'my-post-type' ) ) {
return true;
}
return $columns;
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Something like that should work.
This archived topic is closed to new replies.
