{"id":50012,"date":"2025-10-29T09:01:37","date_gmt":"2025-10-29T09:01:37","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=tips-and-tricks&#038;p=50012"},"modified":"2025-10-29T09:09:55","modified_gmt":"2025-10-29T09:09:55","slug":"displaying-pdf-file-with-dynamic-widgets","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/","title":{"rendered":"Displaying a PDF File with Dynamic Widgets"},"content":{"rendered":"\n<p>This article focuses on three ways to display PDF files using the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/dynamic-widgets-and-blocks\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Widgets<\/strong><\/a> and buttons with the WordPress <em>JetEngine <\/em>and <em>JetElements <\/em>plugins.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"download-the-pdf-through-the-button\">Download the PDF through the Button<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>This solution requires the <a href=\"https:\/\/crocoblock.com\/plugins\/jetelements\/\" target=\"_blank\" rel=\"noreferrer noopener\">JetElements<\/a> plugin installed and activated.<\/p>\n\n\n\n<p>The PDF file should be added to the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#media\" target=\"_blank\" rel=\"noreferrer noopener\">Media<\/a>\u201d field. For this case, the \u201cMedia\u201d<strong> <\/strong>meta field stores the value as \u201cMedia ID\u201d.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1024x640.webp\" alt=\"media id value format\" class=\"wp-image-50013\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Go to the post and add the PDF file to the \u201cMedia\u201d<strong> <\/strong>field.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field-1024x640.webp\" alt=\"pdf file added to the media field\" class=\"wp-image-50014\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-file-added-to-the-media-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to <strong><em>WordPress Dashboard &gt; Crocoblock &gt; JetPlugins Settings &gt; JetElements &gt;&nbsp;Widgets &amp; Extensions<\/em><\/strong> and enable the <strong>Download Button <\/strong>toggle.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">The number of activated widgets may impact the website&apos;s performance, so only the required ones should be enabled.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled-1024x640.webp\" alt=\"download button widget enabled\" class=\"wp-image-50015\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-enabled.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Move to the page where you need to display the PDF file. Add the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetelements\/jetelements-download-button-how-to-allow-the-visitors-download-files-stored-in-media-library\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Download Button<\/strong><\/a> widget.&nbsp;<\/p>\n\n\n\n<p>In the <strong>Download ID<\/strong> dropdown, select the \u201cCustom Field\u201d option. In the newly opened pop-up, choose the <strong>Field <\/strong>that stores the PDF file. You can set up the desired <strong>Download Link Text<\/strong>.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up-1024x640.webp\" alt=\"download button widget set up\" class=\"wp-image-50016\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-widget-set-up.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Publish<\/strong>\u201d button once you are ready and open the front-end page.&nbsp;<\/p>\n\n\n\n<p>Now, when you click the \u201c<strong>Download<\/strong>\u201d button, the file is downloaded.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front-1024x640.webp\" alt=\"download button added on the front\" class=\"wp-image-50017\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/download-button-added-on-the-front.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"display-the-pdf-as-a-link\">Display the PDF as a Link<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>The second solution describes how to display a link to the PDF file.&nbsp;<\/p>\n\n\n\n<p>To achieve this, first of all, install the <em>Attachment link callback<\/em> addon. You can find it on the <a href=\"https:\/\/crocoblock.com\/freemium\/tools\" target=\"_blank\" rel=\"noreferrer noopener\">DevTools<\/a> page and install it for free.&nbsp;<\/p>\n\n\n\n<p>The <strong>Value Format<\/strong> of the \u201cMedia\u201d field should have the \u201cMedia ID\u201d option selected.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1-1024x640.webp\" alt=\"media id value format\" class=\"wp-image-50018\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to the page where you need to display the PDF file. Add the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> widget.<\/p>\n\n\n\n<p>In the <strong>Source <\/strong>dropdown, choose \u201cMeta Data\u201d. Then, select the custom Media field you have created with <em>JetEngine <\/em>(it\u2019s called \u201cPDF-Media\u201d in our case) in the <strong>Meta Field<\/strong> dropdown.<\/p>\n\n\n\n<p>Enable the <strong>Filter field output<\/strong> toggle. In the <strong>Callback <\/strong>field, select the \u201cGet attachment file link by ID\u201d option.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget-1024x640.webp\" alt=\"pdf link displayed with the dynamic widget\" class=\"wp-image-50019\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-with-the-dynamic-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Publish<\/strong>\u201d button and proceed to the front-end page. Now, clicking the link we added, we can open and download the PDF file on the same page.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front-1024x640.webp\" alt=\"pdf link displayed on the front\" class=\"wp-image-50020\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-link-displayed-on-the-front.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"show-pdf-file-content-with-the-dynamic-field-widget\">Show PDF File Content with the Dynamic Field Widget<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>The third option supports only the \u201cMedia URL\u201d <strong>Value Format<\/strong> of the \u201cMedia\u201d field.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format-1024x640.webp\" alt=\"media url value format\" class=\"wp-image-50021\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-url-value-format.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Move to the needed page and add the <strong>Dynamic Field <\/strong>widget.&nbsp;<\/p>\n\n\n\n<p>Select the \u201cMeta Data\u201d option from the <strong>Source <\/strong>dropdown. Then, choose the custom Media field you\u2019ve created (\u201cPDF-Media URL\u201d in this case) in the <strong>Meta Field<\/strong> dropdown.<\/p>\n\n\n\n<p>Enable the <strong>Customize field output<\/strong> toggle. In the newly appeared <strong>Field format<\/strong> input, add the following code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;object&gt;\n    &lt;a href=\"%s\" target=\"_blank\" rel=\"noopener\"&gt;Download PDF&lt;\/a&gt;.&lt;\/p&gt;\n&lt;\/object&gt;<\/code><\/pre>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Ensure that the \"%s\" value is used in the code, as it represents the field&apos;s value. The provided code is a basic example; feel free to customize it according to your needs.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output-1024x640.webp\" alt=\"customized field output\" class=\"wp-image-50022\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/customized-field-output.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Publish the template and proceed to the front end. Clicking the link opens a PDF file in a new tab and lets you download it.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front-1024x640.webp\" alt=\"pdf url link on the front\" class=\"wp-image-50023\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/pdf-url-link-on-the-front.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>Now, you know three ways to display a PDF file using <em>JetEngine <\/em><strong>dynamic widgets<\/strong> and <em>JetElements<\/em>\u2019 button on the WordPress site.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins<\/p>\n","protected":false},"author":20,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[359],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Displaying a PDF File with Dynamic Widgets \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying a PDF File with Dynamic Widgets \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-29T09:09:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1024x640.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/\",\"name\":\"Displaying a PDF File with Dynamic Widgets \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-10-29T09:01:37+00:00\",\"dateModified\":\"2025-10-29T09:09:55+00:00\",\"description\":\"Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Displaying a PDF File with Dynamic Widgets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Displaying a PDF File with Dynamic Widgets \u2014 JetEngine | Crocoblock","description":"Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/","og_locale":"en_US","og_type":"article","og_title":"Displaying a PDF File with Dynamic Widgets \u2014 JetEngine | Crocoblock","og_description":"Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/","og_site_name":"Help Center","article_modified_time":"2025-10-29T09:09:55+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/10\/media-id-value-format-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/","name":"Displaying a PDF File with Dynamic Widgets \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-10-29T09:01:37+00:00","dateModified":"2025-10-29T09:09:55+00:00","description":"Learn the ways of displaying the PDF files with the Dynamic Widgets using the WordPress JetEngine and JetElements plugins.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-pdf-file-with-dynamic-widgets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Displaying a PDF File with Dynamic Widgets"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks\/50012"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/20"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=50012"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=50012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}