Skip Navigation

[Resolved] How to show multiple instances of downloads

This support ticket is created 2 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by tommyJ-3 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2307661
Only_one_instance_is_shown.PNG
Download_files_with_shortcodes.PNG
Multiple_single_fields_with_short_codes.PNG

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?

#2307779

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tommy,

Thank you for getting in touch.

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.

Thanks,
Shane

#2308333

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.

#2308507

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tommy,

Thank you for the clarification.

In this case how are you displaying the custom field ? Are you using the gutenburg editor to design the template?

Given that this is a repeatable field then you may need to use the repeatable fields block.

Please provide some clarity on the setup so that I can further advise you.

Thanks,
Shane

#2310015
Download_tab_in_gutenberg_editor.PNG
Dynamic_sources_nedladdning.PNG

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.

#2310093

My issue is resolved now. Thank you!