Skip Navigation

[Resolved] Display File Name On Page

This thread is resolved. Here is a description of the problem and solution.

Problem:
The customer asked how to show the titles from the files saved in the custom fields.

Solution:
Guided that this will require some custom code and shared some links to forum threads with similar solutions.

Relevant Documentation:
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/

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 2 voices.

Last updated by josiahM-2 1 year, 11 months ago.

Assisted by: Waqar.

Author
Posts
#2369489

I need to display the file and audio name on this page: hidden link

#2369795

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

#2369867

I tried this yesterday, and with no success.

#2369899

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.

#2369935

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"?

#2369949

You're good to go now! Thank you!

#2370025

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 )

#2370053

Thank you so much! Is there a way to hide the top two items since they are repeated below?

#2370125

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.