Hello,i am creating a theme myself.
When the admin publish a new post,i know how to get the title of this post,the feature image,the content,etc… and output them into a template page.
My problem is:How can I get the pdf file of post and create a button so when the user clicks on it then the pdf will download.
Keep on mind that on this page template,the admin will upload a pdf file.
Also i dont want to use plugin!!
Read more here: WordPress:Get the pdf of post