I have a product tab called Nedladdning (downloads) on my product pages. I use the plug-in "WP Download Manager" to upload files that my customers should be able to download from my product pages. Each such download is assigned a shortcode.
I then created a custom single line field in Toolset (slug = nedladdning), that allowed multiple instances. In the product template I added a paragraph block and linked it dynamically to the field "nedladdning". Now my problem is that only the first instance of the downloads is shown under my product tab.
How can I show all the downloads, and not just one?
Unfortunately this is not something that can be done with our Toolset plugins. We don't have a way for you to click one link to download multiple files at the same time.
Based on your setup each item will need to be clicked in order to download them individually.
Anything else from this will require either 3rd party custom code or some plugin that offers this functionality.
Hello Shane
No, you misunderstand my question. I don't want people to download all files at once. What I need is a way to SHOW these separate downloads under my download tab. So that people can download them separately. I guess I need some kind of code to be inserted in functions.php that loops through the instances of the field and fetches the different short codes that I have inserted in those fields (se the image with 2 fields, 4446 and 4455). Maybe a custom short code could be generated to use in the template?
What happens now is that only the instance from the first field is shown.
Hello again Shane,
I have been out of office for a couple of days. Sorry for this late response.
Yes I am using the Gutenberg editor and I am showing these custom fields by using the paragraph block, using the "Dynamic Sources" -> Post Sources = Current Product -> Source = Field Group for Produkter and Field = Nedladdning.