Home › Forums › Support › Custom taxonomies This topic has 9 replies, 4 voices, and was last updated 3 years, 11 months ago by Tom. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts May 8, 2020 at 11:39 am #1275779 Matteo Hello, I’d like to display the custom taxonomy archives in two columns instead of one. Eg.: https://china-underground.com/wp/collection/johnnie-to/ I’d like to display the filmography of each director with a two column layout, instead having just one column. How can I do this? Thanks again for your amazing template May 8, 2020 at 3:24 pm #1276005 LeoStaff Customer Support Hi there, Is this what you are looking for? https://docs.generatepress.com/article/using-columns-in-the-blog/#adding-columns-to-your-custom-post-type Let me know π May 9, 2020 at 6:03 am #1276589 Matteo Hi, thanks! Do I need to add it via php snippet? Best May 9, 2020 at 7:36 am #1276681 DavidStaff Customer Support Hi there, yes the add_filter code is a PHP Snippet … this article explains how to add: https://docs.generatepress.com/article/adding-php/ May 10, 2020 at 8:08 am #1277958 Matteo Hello, thanks again. In this case should I use this code in a snippet? add_filter( ‘generate_blog_get_column_count’,’tu_search_column_count’ ); function tu_search_column_count( $count ) { if ( is_tax() ) { return 50; } return $count; } Thanks Do I need to change the tu_search_column_count to something else? Thanks Is this correct? May 10, 2020 at 8:23 am #1277973 DavidStaff Customer Support That code is correct. You do not need to change tu_search_column_count but you can do to make it more meaningful eg. matteo_tax_column_count Make sure to change it in both places π May 10, 2020 at 9:48 am #1278079 Matteo Hello, thank you! I added and activated the snippet. However in the custom taxonomy archives I still see one column instead of two. What am I doing wrong? Eg; https://china-underground.com/wp/actor/andy-lau/ https://china-underground.com/wp/collection/fruit-chan/ Thanks again! May 10, 2020 at 3:40 pm #1278328 TomLead Developer Lead Developer Hi there, Try this: add_filter( 'generate_blog_columns', function( $columns ) { if ( is_tax() ) { return true; } return $columns; } ); add_filter( 'generate_blog_get_column_count', function( $count ) { if ( is_tax() ) { return '50'; } return $count; } ); May 10, 2020 at 3:54 pm #1278338 Matteo Hello, thank you so much! At the end I chose the 3 column layout, I think it’s great: https://china-underground.com/wp/actor/shu-qi/ Thanks again for your amazing support May 10, 2020 at 4:03 pm #1278344 TomLead Developer Lead Developer Glad we could help π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In