All Questions
67 questions with no upvoted or accepted answers
5
votes
1
answer
597
views
Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
I'm adding an upgrade for the WordPress plugin which I have developed ages ago. This plugin is just a product catalog, so just show products and their images. Products can have more than one images.
...
2
votes
1
answer
768
views
How to change ID of an attachment in wp_posts and its related tables correctly?
I have two posts in my wp_posts table where post_type='attachment'
The picture below shows the records related to those in wp_postmeta table
I need to change the IDs of those files. What I am doing ...
2
votes
0
answers
452
views
Issue to get wp_get_attachment_image with cmb2
I have a problem get the image with cmb2, I have tried in many ways without successm according to the documentation, this is fine, what can I be doing wrong?
add_action( 'cmb2_admin_init', '...
2
votes
0
answers
2k
views
bulk change of image setting "link to" to "link to: image url "
i want every image present on my wordpress site with setting "link to: none" or "link to: post url" became in "link to :image url"
ho make this for old post and for new post ?
i tried this code in ...
2
votes
1
answer
209
views
Converting Attachment to Images?
I've had no problem using lightboxes before with attachment images, but I've switched to a new theme called Quicknote and it seems that attachment images now instead link to the attachment page.
...
1
vote
1
answer
446
views
How can I restrict image upload dimensions for non-admin WordPress users?
I want to restrict the dimensions of images uploaded by anyone who is not an administrator in WordPress to a specific size. I also want to return a specific error feedback when the image uploaded ...
1
vote
0
answers
494
views
wp_generate_attachment_metadata is creating an empty array
I'm making a custom wp plugin for image optimization. I'm at the point that you choose the image, the script starts to optimize and put the new image in the upload folder.
The problem is that i can't ...
1
vote
0
answers
287
views
Force media library editor to overwrite the original filename?
I use the WP All Import to bring in images and stock info via XML into my store. However some of the images that come from a 3rd party system are rotated wrong. If I rotate them manually in the media ...
1
vote
0
answers
174
views
How generate 200% image size and save with suffix @2x
I need to know is it possible to generate 200%,200% image size and save with suffix @2x simply in WordPress? want to enable a simple retina ready theme.
1
vote
0
answers
251
views
Load external images via proxy
regarding the GDPR I would like to load the images from external sources via a proxy. I mean, via my server. So, in the end there are no connections to external servers.
I haven't found a plugin yet.....
1
vote
1
answer
232
views
Add padding while generating thumbnail
I wanted to know, if there is any function to handle following case:
I have registered image size of 200x200, Now if user uploads 100x100 or 800x120 the thumbnail of 200x200 will not be generated. I ...
1
vote
0
answers
78
views
Retrieving Meta from Image Attachment
I currently have added a meta box to the media library popup using the following:
// ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY
function AddLibraryFields( $form_fields, $post ) {
$Added_META=...
1
vote
0
answers
600
views
Add ALT attribute to Pin It Button image to pass HTML5 validation
I am using the Pinterest "Pin It" Button plugin so I can add to my posts/images. However, part of the Pin In button uses this code:
<img border="0" class="pib-count-img" src="//assets.pinterest....
1
vote
1
answer
66
views
Adding custom image sizes and post types to a plugin or to a theme?
I'm just getting started but want to play around in the right area practicing for a new personal site/theme.
Part A:
I want to add featured images (and a few new image sizes) to a blog portion of a ...
1
vote
0
answers
53
views
Make change in media library affect images in published articles
Is there any way/plugin to make wordpress change the description/alt text/caption of an image used in already written articles if I change any of those texts of that specific image in the media ...
1
vote
0
answers
245
views
Adding (image) caching to my Tumblr widget
I've hacked together a simple plugin to show the latest image from a Tumblr blog.
To avoid upsetting the Tumblr API (v1), I want to cache that image within Wordpress...
I think perhaps I can do this ...
0
votes
0
answers
13
views
WP galleries in posts after import. How do I do it?
I moved the website posts with Wp All Export and All import, which worked fine, but many of the posts contained galleries (Wordpresses gallery with [gallery] shortcode). The problem is that now the ...
0
votes
0
answers
208
views
How to disable hover zoom on woocommerce. None of the common methods work
I have tried these codes in child functions and style files. Nothing works.
add_action( 'wp', 'divikingdom_disable_wc_zoom', 99 );
function divikingdom_disable_wc_zoom() {
remove_theme_support( '...
0
votes
1
answer
225
views
How To Convert External Image URLs To Own Website's Uploaded Images Automatically?
I have a website with over 300 posts and initially I used to use external image URLs in my blogs instead of uploading it to my DB and using them.
Is there any way to automatically get all the external ...
0
votes
1
answer
209
views
how to remove share button from image overlay
does anyone know how I can remove share button from image overlay on my website ?, I already have a share button on my site, I dont want uploaded images to have share buttons too, please help
0
votes
2
answers
635
views
How to hide featured images of all posts falling under the same category in wordpress?
Is there any plugin or alternative method to hide featured images of all the posts falling under the same category? Please guide.
For example:
There's a website category:
abc.net/category/fruits
Under ...
0
votes
0
answers
168
views
Copy/paste local images not working in Wordpress
This is somehow frustrating. I am ussing the latest version of Wordpress
I am running my webpage, and when I need to copy-paste an image from Internet into any of my posts/pages I have no problem.
...
0
votes
0
answers
350
views
How to add height and width to images on a page(using WP Bakery) to improve Google's CLS score?
In Google's page speed insights my CLS Score for some pages is low because of the following.
"Image elements do not have explicit width and height" Set an explicit width and height on image ...
0
votes
0
answers
26
views
Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
I am a beginner at using WordPress for my website. I generally design my website using the classical editor provided by WordPress and by installing very few plugins such as Beaver Builder and code ...
0
votes
0
answers
170
views
insert og image link in wordpress post
I am trying to extraxct the og:image url is there a wordpress plugin that extract og:image url from an external webpage url
i need a shortcode to insert that image in my post
0
votes
0
answers
416
views
Is there a way to auto generate poster image for videos
I'm trying to have the poster auto generated for my videos so I don't have to keep taking screen shots of the first frame and manually adding it myself. Is there a way to do this? Reason is because ...
0
votes
0
answers
198
views
Optimise wordpress database using SQL after deleting registered images from Media Folder
I have used Media Cleaner Pro Plugin to clean few batches of registered images. Additionally i have updated my functions.php so these unused images will not be generated in future.
function ...
0
votes
0
answers
31
views
Display Multiple Photos as Featured Image when mouse moves on to it post
I need to add some photos (3 or 4 photos) to the post thumbnail (featured image) and should be displayed image 1, 2, 3 & 4 when mouse moves on to the post thumbnail...How can I do that. Please ...
0
votes
1
answer
33
views
Do images in plugins automatically load?
I have a plugin that I've written that simply provides functionality for shortcodes for images in the plugins /includes/svg folder. So essentially a page can use a short code tag to place an image in ...
0
votes
0
answers
356
views
How to Upload images to a custom folder in upload folder using media uploader
I’m creating a plugin for a customer that will add woocommerce products from images (images currently added via FTP) in a custom folder. The user also wants to be able to create a new folder each ...
0
votes
0
answers
44
views
I need to register and resize images, safe to delete plugin afterwards?
I need to register a new particular size of image for my site, something I can do like this:
add_image_size( 'custom-size', 220, 180 );
However, I will need to resize previous images. I can use a ...
0
votes
0
answers
28
views
Displaying all the images from all of my articles
I'm trying to replicate that codepen but using php wordpress. Basically I want my blogpost images displaying in another div and it changes every time you select another menu.
Thanks for the help.
Here ...
0
votes
0
answers
63
views
what functions to use to resize images and create DB metadata for them after/during upload?
I am working on my first script to create a WP post with images and upload those images to the uploads folder.
I am clear about wp_insert_post and was able to upload an image to the server with ...
0
votes
1
answer
1k
views
Product Page loads terribly slow when product gallery images are added
I have a WordPress + WooCommerce store setup and it works flawless. I recently added 3 new products and each of these products have around 10 images. I added these images in product gallery. But now ...
0
votes
0
answers
153
views
Wordpress create thumbnails on demand
I am having a problem with my hosting as there are too many files in it. This is basically because of wordpress creating thumbnails for every image uploaded and this has accumulated over the last 3 ...
0
votes
0
answers
50
views
WordPress how do I change images used in plugins?
One of my plugins has an ugly no-thumbnail picture. The url to this image is
/wp-content/plugins/weblibrarian/images/nothumb.png
I am an admin. How do I change this image, without using FTP?
0
votes
1
answer
538
views
Implementing Scrollable Images
Sorry if this question derives subjective answers. I figure that asking on WP-SE makes this a little more forgivable. If I had asked on SO I would have had to explain why I couldn't change the block ...
0
votes
0
answers
431
views
Remove special characters from filenames
I have a website that i transfered recently from one host to another. Unfortunately when i did that, i noticed that all the images that had special characters in it lik (é, è, à, ...) weren't showing ...
0
votes
1
answer
30
views
Why is my site still showing insecure icon even if I have SSL certificate?
I have a Valid SSL certificate. My home page, About page, and Hire Page are insecure. I have found out my images on those pages are requesting and accessing an image from HTTP. I used Plugin, every ...
0
votes
0
answers
32
views
Help finding a plugin - masonry type post grid
I would like to know if there exists a similar plugin to how this page lists its' products below the main banner: https://www.ycmcnc.com/en
Talking about this module: https://i.sstatic.net/1HFlS.jpg
...
0
votes
1
answer
39
views
How to make cover image in post block expand to entire screen?
I want to cover the entire width of my page with the cover image block, the one where you can write on top of it. If I need to add a code, please provide the code as well for CSS class. Or is there ...
0
votes
1
answer
432
views
How to wrap image tag into div for post only?
I have created a function it wraps all image tag inside a div, but I want to apply it only for the post but my function wraps the page images inside a div also.
// Wrap img into div
function ...
0
votes
2
answers
471
views
flip horizontal images in bulk
I'm using the WooCommerce plugin and I have a list of like 200+ products and I want to flip horizontally the images for every product.
If I will do this manually it will take me days probably to take ...
0
votes
1
answer
243
views
Does Wordpress have a way of changing the 'Natural' size of uploaded images?
So here's my problem: I have a site with several articles on the homepage, these are using the featured image as a thumbnail (roughly 250x250). Then, for a single article (single.php) I'm using the ...
0
votes
3
answers
263
views
Optimize and delete images in WordPress
I've uploaded several images to my blog posts. I didn't cared about their size so I've put there even 5mb images which could be easily compressed for 200kb.
I know that wordpress already processed ...
0
votes
1
answer
660
views
Upload image to wordpress using ionic/cordova with WP REST API V2
i am building mobile application with ionic and wordpress rest api v2, how to create post with image or upload image with wp rest api? i just can create post without image.
Thanks
0
votes
1
answer
64
views
Add image to post
I've tried attach an image to post but my code doesn't work and I tried a lot of things, a lot of code, etc. What happen? I've tried with this:
$postData = array(
'...
0
votes
1
answer
103
views
resizes images on the fly
I'm looking for a plugin that resizes images on the fly that I can call via php. I have searched the wordpress plugins for something that does this and wasn't able to find anything that was up to date ...
0
votes
0
answers
45
views
Theme Load Error
For 2 days I'm struggling and hitting my head to find out the solution but no thing.
The website isn't loading images on front-page and news-ticker not working at all.
I tried to re-uploading the ...
0
votes
0
answers
294
views
export high ress images to pdf
I want to export a webpage to PDF.
I'm using the wp-mpdf plugin which is based upon mpdf.
The problem that I'm having is that I want to be able to export a high ress image if that is on the page.
E.g....