This archive page is presented using a content template: hidden link It´s an archive.
I need to replicate this presentation about 50 times (50 different CPT), but there is no way to duplicate this display as far as I can see. I might be missing some important understanding of how this works in this matter, so I hope you can explain to me how to proceed.
Can I make the same display using view? (blocks), if so - how / where do I start 😉 If not possible, how would you recommend to proceed? Is there a way to export / import this setup, so I can use it on other CPT?
Main site: hidden link
CPT 1: hidden link
CPT 2: hidden link
It will be about 50 CPT, each with their own "archive" display.
Should the archives be identical (displaying the same fields) and the only difference is the post type?
Because you can create a custom archive and assign it to post type A, post type B, post type C, and post type D, in which case the archive doesn't display posts of types A, B, C, and D (which is what would happen if you created a comparable View), it means that when you visit the archive for A the custom archive is used, when you visit the archive for B the custom archive is used, etc. etc.
This works well if the archive output is the same across all the post types, or if there are only minor differences that can be handled with conditional shortcodes (or blocks), such as "only display this field for post type C".
Forms are set to edit posts of one type, you can't have a form to edit posts of any number of types and then, say, pass to the form the kind of post to edit.
So you would need to include separate edit links for every post type in your custom archive and then conditionally display the right one according to the current archive post type, which would be very inefficient as you would be checking the post type 50 times for every result in the archive, e.g. 500 times if you are displaying 10 items per page.
Which means you would really need to create individual custom archives for each. And there is no duplicate function for archives, you have to create each one manually 🙁
Or, don't include the edit link in the archive, only include it when viewing the individual posts...
But, how about a different approach? Each individual post is presented with it´s title (presented as a number right now). Could this be used as a trigger to the correct form / template? This way I will be able to bypass the use of a edit button?