I need to display the file and audio name on this page: hidden link
Waqar
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
Hi,
Thank you for contacting us and I'd be happy to assist.
To show the title/name of the files from the audio and file type custom fields, you'll need a custom shortcode.
You'll find good usage examples along with the custom code, in these support threads:
https://toolset.com/forums/topic/displaying-file-title-with-a-link-for-custom-field-for-manuals-etc/
https://toolset.com/forums/topic/display-attachment-title-in-button-for-multiple-attached-files/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
I tried this yesterday, and with no success.
Waqar
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
Thanks for writing back.
Can you please share temporary admin login details, along with the details of the steps that you've already tried?
I'll be in a better position to guide you with the next steps, accordingly.
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
Waqar
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
The login info works, thank you.
However, this temporary user doesn't have the "administrator" role and I can't access the Toolset features and settings.
Can you please change this user's role to the "administrator"?
You're good to go now! Thank you!
Waqar
Supporter
Languages:
English (English )
Timezone:
Asia/Karachi (GMT+05:00)
Thank you for enabling the admin access.
I tested the shortcode from the other support forum ticket ( ref: https://toolset.com/forums/topic/displaying-file-title-with-a-link-for-custom-field-for-manuals-etc/#post-1667641 ) on your website and it seems to be working, as expected.
1. I've added the custom code in a snippet named "test" at WP Admin -> Toolset -> Settings -> Custom Code.
2. Next, in the "Custom Body" template for the meetings at WP Admin -> Divi -> Theme Builder, I placed this new shortcode for the "files" and the "audio" fields, like this:
( screenshot: hidden link )
[my_file_name types_field="files"]
<br>
[my_file_name types_field="audio"]
3. You'll see that the link titles from the files from both these fields are now showing on the "May 2022" meeting page.
( screenshot: hidden link )
Thank you so much! Is there a way to hide the top two items since they are repeated below?
My issue is resolved now. Thank you!