Archived topic
How to make Downloads Archives layout same as Post Archives
9 replies · Started by Tommy on February 21, 2023
Is it possible to make the downloads archive page the same layout as the post archives? I know how to change column settings on post archives, but I don't see an option for downloads.
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Is that a CPT?
What is a CPT? Custom Post? It's a download. I use Easy Digital Downloads (like WooCommerce for digital downloads) with this site.
Yup - CPT is custom post type.
Give this a shot: https://docs.generatepress.com/article/using-columns-in-the-blog/#adding-columns-to-your-custom-post-type
That hasn't done anything. As i say, they're not posts, they're downloads and use separate categories...
Did you replace CPT_SLUG in the example code?
If that doesn't work, then you will need to confirm with Easy Digital Downloads on whether Downloads is a CPT or not.
I tried this in Additional CSS is that what you mean?
add_filter( 'generate_blog_get_column_count','tu_search_column_count' );
function tu_search_column_count( $count ) {
if ( is_search() ) {
return 33;
}
return $count;
}
Hi Tommy,
The code is PHP, please refer to the below article for how to add PHP to your site:
https://docs.generatepress.com/article/adding-php/