Wordpress embed pdf automatically after upload via media - wordpress

I want to upload pdf files via media->add new which should be automatically embedded to a unique page for displaying it. So that I can just give that page link to my client to view the uploaded pdf.
Please help me.

I am not sure what you mean by "embedded to a unique page"
But when you upload a file in Wordpress, it gives you the direct URL to the uploaded file in many locations .
You can simply give that URL to anyone you desire.
and also in the Edit Media screen
As well in other places as well - > But I think you get the point .

Related

How to display automatically generated PDF thumbnails in wordpress media library?

I have an issue with displaying thumbnails of PDF's in Wordpress media library (as separate file not while displaying PDF). Thumbnails are automatically generated in wordpress media folder on my FTP in three various resolutions as .jpg's but I cant see them in media library. I would like to use them elsewhere on website, so I won't have to upload 'extra' images to each pdf. Any suggestions? Thank you.
i read this and based on that when thumbnail generate for your pdf you need to create post for that images with post type as attachment.

Thumbnail image on Facebook can't be uploaded, neither do the metatags work

I'm having an issue concerning the thumbnail from a web page that is being shared on socials (LinkedIn & Facebook). LinkedIn has an easy way to choose whatever image you want as a thumbnail, but Facebook is not working for me as it should even if I upload the desired image as one of the available images.
[The first 5 are automatically generated, the 6th is uploaded. I'm unable to only select the uploaded image, the one I desire to use as a stand-alone thumbnail image.][1]
I've tried to add the desired image to the og metatags (drupal 8), but it still doens't load the right image.
Where should I look further into to find a solution? The metatags on our website or Facebook's uploading system?
Thanks in advance for any help.
[1]: https://i.stack.imgur.com/GFhI9.png

Bulk Attach Media Files To WooCommerce Products

I have currently uploaded all of my product images to the server using FTP, registered them using the Add From Server Plugin. I have also uploaded a CSV file containing my products which also includes the image gallery column, which contains the corresponding image URL. The Problem is that it appears that these images are not attached to the products and the URL's of the images in my media file return a 404 page.
Any help would be much appreciated, thankyou Alex.

upload image and use it in plugin

I am developing a wordpress plugin and I have a problem with image uploading. I need do something like what a custom-header contain where I can upload image and use it. I try to use http://goo.gl/JHna9 It upload image successfully but I need something more. I need to find out way how tell to wordpress that uploaded picture was for my plugin and next get all pictures uploaded through my plugin.
Any ideas?
Thanks
you have several choices.
Use the same upload function to create a DB entry (But I would not reccomand it if it is not absolutely neccessary)
use the same function you are uploading to create a hidden custom field - associating it somehow (with a key) to your plugin (after all - an attachment is only a taxonomy for some kind of post - and has it´s own metadata. )
put your attachments in a different folder (can be usefull - depending on what you want to do)

how to display a document in my aspx page

My apsx page basically displays the product description.
A user designs his own classified add and the description is displayed on an aspx page as he has designed it. To make the description more elaborate and instead of designing more components I thought that user should design an additional file (catalog of his product) and upload that at the time of designing the advert.
Now what format of file should I allow the user to create a catalog and how to show the file in the same description page? Can I use update panel? iframe?
You can ask the user to upload PDF file and use iframe to show it.
Basic example
PDF is very popular these days and most people have reader installed including plugins for their browser.
Edit: also possible to ask them for either PDF or Word file (.doc) and in case of Word document convert it to PDF on the fly.

Resources