Hi @alexcc1!
Could you please share more details on how you went about creating this attachments page?
Also, could you clarify what you expected to happen vs. what you are seeing?
Thank you!
I have created the template in the theme directory and customize it in the editor.
wp-content/themes/twentytwentytwo/templates/attachment.html
Clicking on the attachments should load them on the custom page created, but it doesn’t load the content.
@alexcc1 Do you have a Post Content block inside a Query Loop within your Attachment template? That would be required to output any post content – in this case, your media file.
@zoonini Yes, I have the post content block in attachment.html
https://i.imgur.com/iiCfyR1.jpg
@alexcc1 Thanks for confirming.
I did some testing and looking around the Gutenberg GitHub repository, and it looks like this is a known issue with block themes, being tracked here:
https://github.com/WordPress/gutenberg/issues/29887
Support for the creation of more template types, including attachment, is coming in the future:
https://github.com/WordPress/gutenberg/pull/39353
If you need this functionality before then, you might need to switch to a non-block theme, such as Twenty Twenty-One.
Wish I had better news for you, but this is the situation for the moment. Cheers.