Using HTML Object to Display the Featured Image of a Custom Post Type

WordPress
December 03, 2024 01:43:31
semilirbayu
Topics: 1
Messages: 2
The image appears when using [e2pdf-wp key="get_the_post_thumbnail"] in the Image Object. However, when I try to use the HTML Object to show the Featured Image of a custom post type, the images do not appear. I've attempted to follow the method shown in the attached image. What should I do to resolve this issue?
December 03, 2024 02:02:25
E2Pdf
Topics: 7
Messages: 3617
Support
Hello,

Try please to do the following changes:

1. Pay attention to the quotes on the image when using "src". Use "single" quotes:



Or use just:

[e2pdf-wp key="get_the_post_thumbnail" size="full"] - it's no need to put it in the "src" attribute as it should generate the "img" tag automatically.

2. In the CSS section, it should be:

img {
width: auto;
height: 100px;
}

3. If, after correction, it still doesn't work, please provide any "image" URL from your website so we can check if it has public access. You can mark the message as "private," so only support can see it.

We would really appreciate your feedback at WordPress.org!
December 03, 2024 03:35:46
semilirbayu
Topics: 1
Messages: 2
Thank you, the image now appear with single quote like this: <img src='[e2pdf-wp key="get_the_post_thumbnail_url" size="full"]'>
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.