We have to build a "Media Library / Download Sections" for our client on the front end.
Here are some details:
- Each product or service has some pdfs or word files attached to it
- Currently, we have an additional tab where the user can add the files and add some details like the title
- Then, the user has to add a slice for printing out those fields on the product/service page
However, if we want to get all of these files attached to a product or service, we've to query all pages and print them. This way is just unmaintainable for a website with a lot of products.
One option would be to create a custom post type for the files and then create relations. Not sure if there is a better way.