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.
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.
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.