omarK-5
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
populate drop-down list with custom field type file
Commencé par : omarK-5
in: Toolset Professional Support
Problem: You need to create a dropdown in Toolset that lists custom field file types and allows users to download the selected file. Solution: Follow these steps to achieve this: Ensure Custom Fields Exist: - In Toolset > Custom Fields, create a custom field group containing a File Upload field (e.g., custom_file). Enable Legacy Views: - Navigate to Toolset > Settings > General. Create a View to Display Files: - Go to Toolset > Views > Add New View. [php]
[/php]
Add JavaScript for File Download: In the content template add a Javascript for download: [php]
[/php]
Embed the View: Use the Toolset-generated View shortcode and insert it into the page: [php][wpv-view name="your-view-name"]
[/php]
|
|
1 | 2 |
Il y a 1 year, 9 months
- |