Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [images]

Images are used in different ways by WordPress.You can use a theme with images in layout, place images within your post/page content, display images next to visitor's name called avatars etc

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to get rid of undefined variable in previous post image

I am working on a website on WordPress and I have it set to where the bottom of the post will automatically link to a random previous post with a picture from that previous link but a notice keeps ...
user avatar
  • 1
1 vote
1 answer
14 views

Migration to WP - Couldn't load image

Situation: I'm trying to migrate static page made with HTML/CSS/JS into Wordpress. The images won't load. They work in HTML, but when I migrate into PHP there are only alt-descriptions visible. Upon ...
user avatar
0 votes
1 answer
19 views

Updating product image

I have been having this problem recently, I want to update quite a few product images on my website with updated versions. I save the image with the exact same name and upload via FTP to my server, to ...
user avatar
  • 1
0 votes
1 answer
17 views

My authors need to be able to preview their upload images and manipulate and scale

I am using a form and that form allows for IMAGE UPLOAD. After submission the form redirects and then they can see the reviewed post - however if the image which they uploaded blindly does not look ...
user avatar
0 votes
0 answers
16 views

Images links not updated after pushing site from staging to primary domain [closed]

I have pushed site from staging http://copy.fbmgusa.com to primary domain https://fbmgusa.com but images links are not updated. what I have tried: I have tried to update urls using plugins i. e "...
user avatar
0 votes
0 answers
4 views

Maximum image width/height?

If uploading a big image, WP will decrease the dimension and add -scaled to the file. How can I get what is its max limit? 5000x5000 => it can't be greater than X so WP will make it smaller than X. ...
user avatar
  • 101
0 votes
1 answer
18 views

Place image caption outside of figure tag (Gutenburg Image Markup)

I format my single.php images to a perceived 3:2 ratio like this: <figure style="position:relative; width:100%; padding-bottom:66%;"> <img style="position:absolute; width:100%; ...
user avatar
0 votes
0 answers
17 views

Images not uploading on product page of woocommercr

Images on showing on product page and also on all product list. Product image not showing enter image description here
user avatar
1 vote
0 answers
10 views

How to get the url of an Image with id

If I have the id of an image media file, how can I get the url, to download it via rest api? I'm using the Pods Plugin to create my own objects. thes have images included i want to download via rest ...
user avatar
0 votes
1 answer
31 views

Is there a wordpress filter to edit the markup of inline images?

I would like to add a class to wordpress inline images. Is there a filter that i can use to edit its markup?
user avatar
  • 275
0 votes
1 answer
10 views

Featured Image Cetegory Not Shown In WordPress

I am trying to create a post for a new WordPress website, and want to show a thumbnail in my blog for the post. However, the "Featured Image" tab is not there. I have seen the solution to ...
user avatar
0 votes
0 answers
17 views

Responsive Images from S3 has no srcset

My Production server has blurry images. Turns out, the image rendered has missing srcset. Upon searching, I checked that the images uploaded was not on the server where I host my wordpress but was ...
user avatar
0 votes
1 answer
10 views

WordPress Animation Adjustments

I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
user avatar
0 votes
0 answers
11 views

Edit Page did not get refresh after update

I notice if I performed a filename change for an image under "Edit Page", the page does not get refreshed automatically. Is this normal? Replication Step Upload new image via "Upload New Media&...
user avatar
  • 13
0 votes
1 answer
12 views

The URL of images on my website changed after being set as featured image

When I upload the image, it is https://www.mywebsite.com/wp-content/uploads/2022/03/image-name.jpg After I set it as a featured image, it is like: https://www.mywebsite.com/wp-content/uploads/...
user avatar
0 votes
0 answers
11 views

Custom image sizes showing in Classic Editor only when upladed directly to post

I can't get custom image sizes to appear in Image details size selector unless the image is uploaded directly in the post. If you choose an image from the Media library only default image sizes are ...
user avatar
  • 1
0 votes
0 answers
8 views

theme directory fallback image outputs url and not the image

I am adding a custom post thumbnail column to the user admin table in WordPress. I want to retrieve a fallback image from my theme image directory if no post thumbnail has been created. I don't want ...
user avatar
  • 125
0 votes
1 answer
20 views

Change Image Size option in the settings in bulk

I was wondering if I can change Image Size option in the post settings panel. From Large to Full Size. Automatically in all posts? I have about 500 posts... :) Seem can not find any answer to that. ...
user avatar
-1 votes
1 answer
51 views

wordpress is generating too many Image Sizes

I have removed the default image sizes, and added my custom image sizes with this code: // Remove default image sizes function remove_default_image_sizes( $sizes ) { /* Default WordPress */ ...
user avatar
0 votes
0 answers
19 views

Image modification

I am a beginner at CSS. I have followed Airbnb clone challenge. I believe that I follow everything the instructor does. Here is my problem. I added an image from my wix website. And, I added layout, ...
user avatar
1 vote
1 answer
111 views

How to upload images in a specific folder using API

I have installed wordpress plugins Real Media library, Real Physical Media, and Media file renamed. Using this I am able to physically move images and organize images in the upload folder as per ...
user avatar
0 votes
0 answers
12 views

How can i sorting and display image order by siz in media library?

How can i sorting and display image order by size in media library? Sorting is important for me? Any one can help me please?
user avatar
0 votes
0 answers
10 views

x2 images for retina?

What are best practices for retina screens regarding images? Do you x2 everything? That meaning do you export all images at double size? (then of course display at half that with css).
user avatar
0 votes
1 answer
19 views

Custom image uploader without widgets

I'm developing a site that is using Wordpress for database interactions, but I'm not really using features like pages or posts or widgets. I'm trying to create an input form that allows the user to ...
user avatar
0 votes
0 answers
11 views

How to change background slider image when hovering on text?

I'd like to have a full screen slider with several project title headers on top. My goal is that when the user hovers on the name of a project, the backgorund image changes to an image specific to ...
user avatar
0 votes
1 answer
15 views

Not able to retrieve image id from sibling site within a switch_to_blog

Here is how I am trying to grab the image id for 'white_logo'. switch_to_blog($site->blog_id); echo attachment_url_to_postid( get_theme_mod('white_logo')); restore_current_blog(); The echo is ...
user avatar
  • 17
1 vote
1 answer
49 views

Remove the inline styling added in wp_get_attachment_image()

Here is how I am calling wp_get_attachment_image: $id = attachment_url_to_postid( get_theme_mod( 'blue_logo' )); echo wp_get_attachment_image($id, $size = 'blue_logo', $icon = false, array( "...
user avatar
  • 17
0 votes
0 answers
11 views

How to display a warning when an uploaded image is too small?

I want to display a warning when a user uploads an image with too low a resolution. I don't want to block the upload, just give a warning. The only option I see is wp_handle_upload_prefilter, but ...
user avatar
0 votes
0 answers
29 views

How to disable a WP Image Block to link to itself?

When I insert an image through Gutenberg. The default behavior will make the image clickable. When you click on the image, it will open the link to the image. I don't want the images to be clickable, ...
user avatar
  • 999
0 votes
1 answer
19 views

image resizing on post content without css and html tags

Background: I am using WordPress posts for Newsletter. I am importing the posts through an api and use them in a Newsletter tool to send them out. I am downsizing the featured image before feeding to ...
user avatar
0 votes
1 answer
15 views

Background Image Does Not Display on Page

So I did what you said to correct the code and it fixed my site but I see that the pages that use this layout do not have the background images showing. I have included the whole code for the section ...
user avatar
0 votes
0 answers
12 views

Can’t fix corrupted images

I called wordpress about corrupted files on the website but wasn't able to get an answer, does anyone know why the pictures are corrupted and why I'm not allowed to add new images on the dashboard? I ...
user avatar
0 votes
0 answers
16 views

How to track inexistent images request

My server CPU is running high and one of the reasons is that it is requesting these images that don't even exist. How can I track and find what exactly is requesting them?
user avatar
  • 145
0 votes
0 answers
62 views

Generate images with html2canvas and the woocommerce api

my question is a bit special and i dont know if my idea even works. I have a woocommerce shop where the products get imported via a CRM with the woocommerce API. Now I'm trying to create for each ...
user avatar
0 votes
1 answer
21 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
user avatar
0 votes
1 answer
50 views

How to display WooCommerce category image in my category page banner as a background?

I am creating one WordPress website from scratch, where my client needs WooCommerce category image as a background for all respective categories pages, usually I call page banner like this, but this ...
user avatar
  • 13
0 votes
0 answers
11 views

How to link image in Wordpress - Elementor when certain element does not offer that option?

I would like to see if there is an option for linking image in Elementor Carousel, when there is no option for it to do so. Specifically, I mean the Team Member Carousel widget from EA addons. I need ...
user avatar
0 votes
0 answers
13 views

Site/Post preview is not working on all social media

I am facing a site preview-related issue. Whenever I paste my site or post a link on social media platform then they must be shown that particular link preview, but except the Facebook, none of the ...
user avatar
0 votes
0 answers
53 views

How to exclude native lazy loading from first image in post content?

I have been using wp rocket and a few other plugins to lazy load and finally thing we can get off of it and use native lazy loading. The first image in my niche often displays above the fold for both ...
user avatar
0 votes
2 answers
25 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 ...
user avatar
0 votes
1 answer
47 views

Change extension to .jpg when webp is not supported

I'm trying to show jpg in browsers that don't support webp without using a plugin, When uploading images, I upload both as webp and jpg. İ add webp by default, I need to change the extension to .jpg ...
user avatar
0 votes
0 answers
20 views

Can I achieve this with Wordpress?

Feels nice to be part of StackExchange. I used to make websites with wordpress around 8 years ago but now I’m a bit out of the loop. Well I was given an offer to make a website with a bit of unusual ...
user avatar
0 votes
1 answer
26 views

Does wp_get_attachment_image_src also work with non-image files?

I wish to get the file path to files other than images like PDF or TXT that are uploaded. Should I use wp_get_attachment_image_src or there's other function more suited for non-image attachments.
user avatar
1 vote
0 answers
63 views

AJAX - save an $_FILES picture in media library

From an array like this Array ( [file] => Array ( [name] => 100522738.jpg [type] => image/jpeg [tmp_name] => /Applications/MAMP/tmp/php/phpv9nkXY [error] => 0 [size] => 41784 ) ) ...
user avatar
  • 13
0 votes
1 answer
25 views

Hook after attachment added and cropped

I am looking for hook, that fires right after image uploaded, cropped for thumbnails and data posted to database. I need it for image optimization after uploading. I tried add_attachment and it fires ...
user avatar
  • 21
1 vote
1 answer
26 views

How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product

How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product. Because I want to make a photo album blog, the images within each post ...
user avatar
  • 11
0 votes
0 answers
11 views

Product Images Making a Column

I'm brand new to coding and such, so I personally have no clue what I'm doing. I purchased a theme I'm extremely satisfied with. However, I'm having some problems with the way images line up on my ...
user avatar
0 votes
0 answers
11 views

Bulk Image Resize for Media Library, but for ENLARGING instead of Shrinking

I have hundreds of images in my Media Library. I know there are many plugins that can do Bulk Resize, but all those I've seen only allow you to set a Max Size (you can't enlarge small images, only ...
user avatar
  • 101
0 votes
1 answer
30 views

How to upload and style svg logo?

WP beginner here. I'm trying to upload an svg logo to my site. The logo can be accessed here. If you open it in the browser and inspect it, it should show the svg tags around the object. I've ...
user avatar
0 votes
0 answers
17 views

Family collaboration to identify ancestors on pictures

Not sure this is the right community to ask, but I can't find a better one. And in addition, I am a newcomer here. So please be kind. So here goes my problem: I have a dozen very old pictures from the ...
user avatar

1
2 3 4 5
70