Skip Navigation

[Resolved] Cannot display title and description of a file in a loop

This support ticket is created 5 years, 10 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 5 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1216613
2.png
1.png

Hello. We’re having some technical difficulties on our client’s website and we were wondering if you can help us. We are trying to print out the TITLE and DESCRIPTION of files within a loop. This is a single custom field within a custom post type. It is important that this must work with different file types (images/pdf/docx/xls) and that if there is more than one file added (from the “add new” button) they get printed out as well. For example if you have 4 attachments.

Could you provide a shortcode solution to this, please? We have been looking around your forums and saw some similar issues but we could not run them in our situation.

Thank you

#1216942

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - can you confirm that you want to display the title and description within your theme's PHP template file - correct? If yes: is it single post type PHP template file?

As well as can you tell me how exactly you want to display the file field with title and description information.