Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
3 views

How to create interactive charts on WordPress?

I want to create a responsive website using WordPress, and the website will contain interactive charts. I am deciding on what graphing libraries (e.g. python plotly) or analytics tools (e.g. Sisense, ...
0
votes
0answers
11 views

Function to make black and white favicon

I use this function: function add_favicon() { $favicon_url = get_stylesheet_directory_uri() . '/images/icons/admin-favicon.ico'; echo '<link rel="shortcut icon" href="' . $favicon_url . '" ...
0
votes
0answers
11 views

Missing image in media library

I have uploaded image in Wordpress media library. It is not showing in media library. But I checked in wp-content there have uploaded image. right now what can I do?
0
votes
0answers
15 views

Delete product image using WooCommerce API?

I'm trying to remove product image (one at a time) using WooCommerce API but I'm facing a strange problem. I can remove all associated image at once by sending an empty array in images: { images:[] } ...
0
votes
0answers
9 views

DPI in galleries

I was always told that for web work, 72 dpi is fine for photos. That was back when LCDs were themselves 75-100 dpi. We now have "retina" displays however that are 200-250dpi. If someone is viewing a ...
0
votes
0answers
13 views

Automatically associate the product image with the SKU

I manage a website that references more than 40,000 products. We used WP ALL IMPORT to import the products (more than 48h of import), and we had problems with images that are not imported while they ...
0
votes
1answer
17 views

Changing default img html markup but not in admin back-end?

Based on some posts on Stack and ACF forum I've created code for changing default img html markup for lazyload script lozad.js. It's works great, but works also in admin back-end. I was trying to use ...
1
vote
0answers
13 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 ...
0
votes
0answers
23 views

Add values as links with woocommerce_wp_select [on hold]

I found something // Display Fields using WooCommerce Action Hook add_action( 'woocommerce_product_options_general_product_data', 'woocom_general_product_data_custom_field' ); That allowed me to ...
0
votes
0answers
21 views

RSS media:content image to Featured Image

I can see lots of plugins and solutions for embedding a featured image into an RSS feed, but what I want to do is take an image that has been embedded in a feed and make it a featured image when the ...
0
votes
1answer
15 views

Images not displayed in Media Library inside elementor template

I am trying to display the images in the media library inside the elementor view. When I try to upload files programmatically, the file is uploaded but not displayed in the Media Library grid view. ...
0
votes
0answers
7 views

Gutemberg image block adding link to homepage

We recently started using Gutemberg on a website we are slowly changing. Everything seemed great, until we noticed that the image block is adding a link to our homepage on every instance, even though ...
-1
votes
0answers
9 views

wpDiscuz acf image field as a user avatar

i use wpDiscuz for user commenting.. and useing ACF image field for user avatar. problem is that wpDiscuz use gvatar for user avatars. But i want to use Advanced custom image field for user avatar . ...
0
votes
1answer
15 views

Only show first image in foreach loop

My loop shows a list of values, and underneath them, the post title and image for the value. The problem is that because some values are associated with multiple posts, multiple images show up. I ...
0
votes
0answers
8 views

Removal of image space on Woocommerce product page

I have managed to remove the product image on a single product page. But it has left a huge white space. How can I remove the whitespace? and link for reference...
0
votes
2answers
21 views

Images are randomy deleted from server

I've got a bizarre problem with a website I'm working on. Recently, when anyone uploads images to the site, some time later (maybe an hour, sometimes several hours) one or more images disappear ...
1
vote
1answer
23 views

Fallback for missing srcset images

I'm trying to optimize responsive images on our site. We use WordPress. Not all image thumbnails are generated because of aspect ratio needs to be proportion to the original image. Some of our images ...
0
votes
1answer
25 views

Images 404 after wp migration to a subdomain

Hello guys I have just cloned a website I am having an issue. In the clone there are just a handful of images that work. All the others appear as broken images in the front-end. When you try to ...
0
votes
0answers
19 views

Having difficulties with themes

I currently am using the twenty seventeen theme and I ran into an issue with my pictures. They look great when I scroll but when I click on for example the about, the picture overshadows the content ...
0
votes
1answer
16 views

Get list of posts from attachment

My gallery has dozens of images. Next to each image, there should be links to the posts attached to that image. (You can see these in Media Library, under "Uploaded To"). I am able to retrieve the ...
-2
votes
0answers
31 views

Show taxonomy list with taxonomy ACF images [duplicate]

i have a taxonomy list in the home page made with https://wordpress.org/plugins/wp-categories-widget/ plugin .. i crated image field for taxonomies with ACF. i can show tax image on archive page but i ...
0
votes
3answers
79 views

Show taxonomy list with taxonomy images ( SOLVED)

i have a taxonomy list in the home page made with https://wordpress.org/plugins/wp-categories-widget/ plugin .. i crated image field for taxonomies with ACF. i can show tax image on archive page but i ...
-1
votes
1answer
14 views

Support Gallery link to pages

Hi i am new in wordpress i am try to show small gallery (like services) on home page and i want them to link them with pages not with post. currently i am working on theme. it has a services option ...
0
votes
0answers
13 views

I changed the template for WooCommerce product for category image (Category and Taxonomy Image plugin) but the image is still not displayed. Help!

I am trying to display category image instead of text on my product archive, but looks like something does not work. I am using Category and Taxonomy Image plugin (https://sl.wordpress.org/plugins/wp-...
0
votes
0answers
12 views

Teaser Image Shortcode Link [on hold]

I'm using the following code which is a image teaser shortcode used within my theme: [tg_teaser columns="one" image="http://blah.com/image.jpg" title="title goes here" align="left" bgcolor="" ...
0
votes
0answers
16 views

Adding button to the image block with custom functionality - gutenberg

Hi, I would like to add custom button with custom functionality to this view. Is it even possible? I was searching all night, finding solutions how this can be done. But without luck. It needs to be a ...
0
votes
1answer
14 views

Plugin for an interactive image? [closed]

I'd like to make an interactive image like this one, so when a visitor hovers over that circle, some text dialog pops up. Does anybody know any WordPress plugin that could do that or atleast something ...
0
votes
0answers
23 views

Export wordpress image ID based off keyword search

I would like to know how to go about exporting a load of image ID's based off the image name. For example 'how to dig gold' search may have a load of images like how to dig gold.mp4001.jpg how to ...
0
votes
1answer
27 views

All Images not calling alt text

I am having trouble with the alt text on my wordpress.com website. I am using a theme I coded myself. From what I recall, if I added alt text to an image in the Media Library it would insert into the ...
0
votes
0answers
16 views

Upload image in the library doesn't show up and return 403 forbidden

When I try to upload image directly in Dashboard->Media->Add new, the image is uploaded in the upload folder but is not visible in the Media->Library and on the console I see 403 Forbidden when ...
0
votes
1answer
10 views

I can't load my images from a js file using wp_localize_script

I am using a slider to show my images that works fine on my sit but when I converted my site in to a wordpress theme it started giving me troubles on loading the images, slider is active but images ...
0
votes
0answers
21 views

Set Post Thumbnail to external URL

This question is with regard to feature images on WooCommerce product post types, however it should probably apply to any post type. I am running a custom script to create new posts (of type product) ...
2
votes
1answer
17 views

Can't access 'Store uploads in this folder'

I have had a problem uploading images from my laptop onto wordpress. Basically, the images are broken and cannot be viewed when implemented on the site. After trying to rectify the problem through ...
0
votes
0answers
25 views

Post images are not displayed in media library

I use an image for a page that is uploaded back in 2014 up until now and back then I uploaded few images as well. But when I looked into the library, I could only find the images that are uploaded ...
0
votes
0answers
23 views

link not working in image section

Hi in my site paintint there is an interior designer section under slider whenever I put a link to that image like this link it adds /v after any link automatically: https://paintint.com/interior-...
-1
votes
1answer
22 views

How to display multiple images in the before and after plugin?

As the title says, I need to know how to add multiple images in the before and after plugin, The plugin allows me to add two images only, Is there is anyway to display multiple images with prev & ...
0
votes
0answers
36 views

Images names not inserting in Wordpress Database from Dynamic Add / Remove fields

I have created dynamic add / remove fields in which one is file upload fields. Everything is working fine. But there is one problem. When I add images in file fields and fill other details in other ...
0
votes
1answer
11 views

(Divi): How to make Wordpress load images of specific size for Blurb modules on given page with a funciton?

I have 28 pictures uploaded to media library, each around 3mb. Wordpress has already created resized copies of those: thumbnails, medium and large. The pictures are used as Divi's Blurb module images ...
2
votes
0answers
15 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 ...
0
votes
1answer
15 views

Change background image page header overlay for each category

this is my site: http://styleofchamp.com/ and I'm trying to change the background image page header overlay for each category. I have been looking at many forums but I didn't get with the correct ...
0
votes
0answers
17 views

Private Custom Post Type for a Blog? [duplicate]

Just wondering if anyone can point me in the right direction please, it may not be possible - but just thought I'd ask incase. I currently have a marketing website for a school campus, within that ...
0
votes
1answer
29 views

Clear out old images, any advice?

I'm working on a site which has a media library that is now 7GB - and I really want to clear out all the unused images. I've tried using the Media Cleaner Plugin: https://wordpress.org/plugins/media-...
1
vote
1answer
24 views

Hero image cropped at different dimensions

I have a site with a hero banner image. This is how it looks on desktop: This is how it looks on mobile (via Chrome Dev tools): As you can see, the image on mobile is too narrow, I want it to look "...
0
votes
0answers
13 views

How can I add links to posts and pages using a particular image from its own media attachment page?

I have various media attachment pages e.g. https://www.artobatours.com/rock-art-abric-del-mas-den-ramon-den-besso-muntanyes-de-prades-catalonia/ where I have the image and some exif data. Along with ...
0
votes
0answers
6 views

Wordpress5 with Gutenberg no showing images in Preview

I have finally updated to Wordpress 5, for fear of things breaking. Now I have, and images are now showing when I Preview, there is no code there at all for images. It's like Wordpress is not even ...
0
votes
1answer
14 views

Set custom banner image size with wp_customize

I've set the banner image of my site to be customizable through appearance -> customize. I'd like to adjust the image size and crop aspect ratio of the customizer, as it's still set to a thumbnail ...
1
vote
0answers
23 views

Move Image Captions Inside Link (<a> tag) if Added

I'm just looking for a relatively simple way to modify the default output when a standard post image with a caption is linked somewhere (generally to another page), so that the caption is included in ...
3
votes
1answer
72 views

Apply image width to <figure> tag

Before the Block Editor was implemented, the <figure> tag used to have an inline width styling, matching the value of the image inside, example: <figure style="width:300px;"> <img ...
1
vote
0answers
17 views

Is it possible to change 'Link to' in all images in all articles?

After some update, they all changed to none. Need to change to 'Media file'. Can I do it once and for all pictures in all articles? I see in the text of article difference between images with Link To ...
0
votes
1answer
27 views

Delete attached images from posts

I exported posts from site X to Y. But in every post on site X there was image attached to it (not featured image) <a href="http://x" rel="attachment wp-att-25425"><img src="x/wp-content/...