Embedding a pdf to self hosted wordpress blog
I was wondering how a pdf file can be attached to my self hosted wordpress blog. Couldn’t find the solution. PDF Upload goes half way and then returns IO Error.
Browsed through lots of forums and found an alternative, not the exact solution. The easiest way is to embed a pdf, here is how:
Upload your pdf to ftp say /blog/wp-content/uploads/2009/01 folder. Say your pdf file name is yourpdf.pdf
The complete path would thus look like: /blog/wp-content/uploads/2009/01/yourpdf.pdf
Now, go to the post where you want to embed the pdf object. In the same post swich your view to HTML and paste the following code:
<embed src=”http://www.yoursite.com/blog//wp-content/uploads/2009/01/yourpdf.pdf” width=”400″ height=”300″> </embed>
You can change the height and width to suit to your interface requirements.
If anyone has come across a solution to attach a pdf, pl. let me know.