Nw92
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Thumbnails] Assign thumbnail as Feature ImageHey Stianlik, sorry for the rather late reply.
I can verify that the pdfs generate thumbnails that appear in the media library. I managed to set up php error logging and the logs are full of repeating errors of:
PHP Notice: gd_edit_image_support is deprecated since version 3.5! Use wp_image_editor_supports() instead. in /home/…/functions.php on line 3378I’ve read around that this is probably to do with ImageMagick, which may explain why this wouldn’t work, but I’m doubtful because as far as I understand, ImageMagick is only involved in the pdf image generation stage and not the featured image allocation stage.
Other than the above error, I can see no telling signs of why this would not work. Just to check, can you verify where you put the code snippet you created for this? I put mine in the child theme’s function.php file, but as I’m entirely new to WP I’m not entirely sure if this is the right area.
Thanks again and Happy New Year!
Forum: Plugins
In reply to: [PDF Thumbnails] Assign thumbnail as Feature ImageThank you for this, I really appreciate it.
I’ve tried adding the code snippet to my functions.php but nothing appears to happen in the way of attaching the image as the featured image. I am uploading the image rather than choosing one from the media library. Could you please explain the code?
Forum: Plugins
In reply to: [PDF Thumbnails] Assign thumbnail as Feature ImageHi,
Sorry about the vague description. I’m hoping to dynamically create a product preview of a pdf by uploading an attached PDF to the product page and scraping the first page with this plugin and assigning it as the featured image. Currently, nothing happens. I cannot find the link in the code or anywhere that allows me to dynamically grab the ID of the thumbnail image and assign it to the products page as a featured image. I hope thats enough information.
As for the links you provided, I thought that the second link you gave me was pretty close to what I’m looking for, minus the linking to the pdf functionality.