Support Forum
Hi, I have a CPT that will include a PDF file.
I want to display that PDF automatically when the single post template is used. ( I.e it is clicked on from a Posts list page)
So if I have a WYSIWYG field and upload the PDF there, then I have a plugin - PDFEmbedder - that adds some code. When the single post is chosen the PDF opens automatically, so no need to click on the PDF.
[pdf-embedder url="https://sitename/wp-content/uploads/2021/04/sample.pdf"]
But I would rather use the PDF uploader field to better limit what the user uploads. However this field does not pick up the PDFEmbedder code and does not automatically open the PDF.
Anyone know how I can get the PDF field to auto load a PDF?
Many thanks