Skip Navigation

[Resolved] Need to display a file's cover image

This support ticket is created 2 years, 3 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 5 replies, has 2 voices.

Last updated by alishaT 2 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2477611
Example03.jpg

Tell us what you are trying to do?
I'm trying to create an easy to use method for a client to load a pdf document into the media library, add a title/cover image, and see the title/cover image as the link on the front end in the page.

Is there any documentation that you are following?
My previous ticket was closed (https://toolset.com/forums/topic/need-to-display-a-files-title-and-cover-image/?bbp_reply_to=2471097&_wpnonce=53bd340a51#new-post)

Is there a similar example that we can see?
Attached image

What is the link to your site?
hidden link

#2478041

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I see that Waqar already shared solution with you using the custom shortcode with the previous ticket you shared:
- https://toolset.com/forums/topic/need-to-display-a-files-title-and-cover-image/#post-2473291

Is the solution shared by Waqar is not working?

#2478169

Hi Minesh,

The presented solution works fine, however, it only works for the name of the file but no for the image (cover) of the document.

Thank you.

#2478203

Minesh
Supporter

Languages: English (English )

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

I will have to review how you are displaying the cover image as well as where you added the code that is shared by Waqar.

Can you please share all those required details as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2478349

Minesh
Supporter

Languages: English (English )

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

Thank you for sharing admin access details but can you please share bit more details about your structure.

I can see there is a PDF link "my_file_name" displayed with the following link, its displayed using the shortcode:
- hidden link

[my_file_name types_field="press-release"]

I see the cover image field is belongs to different post type and if I check the above link there is no related cover image field setup.

Can you please tell me what cover image field you want to display and to what field you want to link to that cover image? Please share one example where content is setup.

#2480777

My issue is resolved now. Thank you!