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
0answers
11 views

Fetch likes count

I’m using Buddypress with rtmedia plugin. What I'm trying to achieve is to display total media likes count of each members' gallery on their respective header. I tried this code but it always displays ...
0
votes
0answers
17 views

Force WordPress to always generate a thumbnail for original image

WordPress only generates thumbnails for sizes smaller than the original image. However sometimes the user will upload an uncompressed image with dimensions below the specified thumbnail size e.g. ...
0
votes
0answers
6 views

Woocommerce, product with variation change size when page loaded [closed]

I have woocommerce site and this issue just appeared and have no idea for cause. When the product page loads, the product image reduces size unexpectedly. It only affects products that have variations....
0
votes
0answers
17 views

Updated wordpress missing image upload area

Our wordpress updated yesterday. We are on version 5.3.2. Since the update the upload files function within a page is blank. I have included a screenshot, I wondered if anyone else has had this ...
0
votes
0answers
17 views

Findout which user account uploaded an image to WordPress

I have this issue with https://matchmaker.lk/profiles/ Where users will be able to create profiles and upload a profile picture with gallery pictures. However, sometimes they get interrupted or some ...
0
votes
0answers
10 views

Image Gallery photos aren't cropping, even though they're set to crop

Can someone help??? I know I'm uploading relatively high-res photos, and yet they're still not filling the frames of the image gallery I'm creating in the post. I've set the switch to "Crop" in the ...
-1
votes
0answers
14 views

Hide First Image in Product Gallery on Single Product Page WooCommerce

I've seen many people give solutions to this problem on this site, but none have seemed to work for me. I have a lot of products already set up on my site. I want all products to have a product image, ...
0
votes
1answer
30 views

Custom filename when pasting an image from clipboard

I've used a plugin with the classic editor that enabled me to paste images directly from the clipboard, into the post. But only used this when the filename did not matter seo wise. With the Gutenberg ...
0
votes
0answers
21 views

How to get the url of the entry in which an image belongs

I'm creating a custom attachment template in WordPress, so far so good, but I would like to show the url of the entries or articles where that image belongs somehow? <div class="entry-attachment"&...
0
votes
0answers
14 views

Change Image in Mobile Search Results

When searching my company, "Tattini Boots", on a mobile device you will see that the following cut off image is displayed next to the search result (see image below). This is not the image that I have ...
0
votes
1answer
34 views

Omit image captions from get_the_content()

I use a theme that calls get_the_content() to display short excerpts of the latest blog posts on the home page. Now I noticed that the excerpt sometimes starts with an image caption, if the blog post ...
0
votes
0answers
6 views

“Restricted: Image width must not exceed…” error

When a client tries to upload image files he sometimes gets an error similar to the one shown below. This is a recent issue and the behaviour is unpredictable because the pixel size limits seem to ...
1
vote
0answers
23 views

Multiple amp-image overlays. How to properly do this in wordpress?

Summary Goal I want to: Add multiple overlays to an image, on a page, created with gutenberg, rendered as amp-img on the frontend. I want this kind of end result, but added through gutenberg. When ...
0
votes
0answers
21 views

count total number of post using a particular image

i would like to know how many posts are using a particular image. But the only way i found is checking every post_content in the wp_posts table and looking if the image is used in there. is there a ...
0
votes
1answer
15 views

Add custom version to an image

I have scoured the web for plugins and articles to help me solve something that seems pretty basic, but couldn't find anything. I want a way to create custom versions, particularly sizes, of an image ...
0
votes
0answers
11 views

Bulk edit Gutenberg single images to change from linking to media file to attachment page

I have several hundred posts which include a mix of single image and gallery blocks. All of them currently link to media file. What's the fastest way to change this to attachment page instead? (And ...
0
votes
1answer
21 views

What is the best way to host a site with many images without it being too slow?

I have a friend that wants me to help them with their WordPress website that has about 150 images for their gallery. Their site is quite slow even after I optimized the images using the ImageOptim app....
0
votes
0answers
27 views

How to get the best resolution of image from srcset

How to get the best image resolution from srcset in WordPress post? For example, the image code looks like this: <img src="/uploads/2012/12/Multitronics-TC-750-300x175.jpg" class="aligncenter ...
0
votes
1answer
16 views

WP Query search for attachments and their exact title

Due to lack of reputation, I must now ask the question. I want to create a search for all images in the media libary. The search result should only appear if you search for the exact title of the ...
0
votes
0answers
28 views

Retrieve images from parent site to child site using current shortcodes

I have a WordPress network setup, with a parent site and a few other child sites within it. I have a custom plugin that saves content (images & posts) to a list for each user on my parent site. I ...
0
votes
0answers
25 views

Show featured image in all posts

I use the Uncode theme which allows me to place my featured image in the posts, however it only shows me those that have a large image (approximately over 1500 wide) and the small images do not show ...
0
votes
1answer
13 views

How to have these images appear on the same line? [closed]

I have added in these three images that include clickable links to social media pages in a Custom HTML block. However, they are showing on three seperate lines but I would like them to be next to ...
0
votes
0answers
10 views

How can i remove one img src for existing and future post?

I have <img src="ex.jpg" alt="ex"/> any code to remove this image so i can set right first image as thumbnail
0
votes
0answers
12 views

How to add a custom image to the Social Links block?

I have added in the Social Links block to my website, including YouTube, Twitter, Facebook, etc. However, I want to add one for Minds.com and a few other sites but don't want to use the default link ...
0
votes
1answer
23 views

Add clickable link on an image

I'm trying to add an image that when clicked on directs the user to another page on my website. I don't want any visible text link, just the image. How do I do this?
0
votes
1answer
25 views

ALT attribute in menu images

I have a few missing attributes in my WP Theme. I found images in header.php in example: class="articles"><img src="<?php echo get_template_directory_uri(); ?>/images/topmenu/...
1
vote
1answer
21 views

Is there a way to dynamically get to your uploads folder?

I have a locally hosted site that uses bootstrap to create a carousel with pictures from the upload folder. I currently have the bootstrap markup using the source of the pictures, but I fear when I ...
1
vote
1answer
32 views

Frontend Post - Allow Only Image File Upload

How I can allow user to upload only IMAGE file ? function.php // Insert Attachment function insert_attachment($file_handler, $post_id, $setthumb='false') { if ($_FILES[$file_handler]['error'] !==...
0
votes
2answers
24 views

Lightbox not showing image caption

I am using Jevelin theme and their Lightbox should showing image caption from alt attribute. Hovewer it doesn't works. Here is the link: https://www.coleopterafarm.cz/galerie-zlatohlavci/ I am ...
1
vote
0answers
22 views

Extend core block attributes in post content

I need help with adding attribute 'caption' of core/image block into saved post content. Currently saved attributes look like follow: <!-- wp:image {"id":36,"sizeSlug":"large"} --> I aim to ...
1
vote
0answers
17 views

Get Custom Logo Alt Text

I'm trying to get the alt text of the custom logo specified in the theme customization. Unfortunately this doesn't work because it seems the alt text is not included in the post meta: $custom_logo_id ...
0
votes
0answers
8 views

wp cli import media adding 10 files for each media files on disk. is it a bug?

I copied some files to my server; Then I ran: wp media import *.jpg Then in wordpress > media-library, there are 10 different sizes for each file, EACH size has its own entry in the media library. ...
0
votes
1answer
42 views

How to add a PHP scripts into Wordpress

I have some PHP scripts around 60, which contains images that every 10 secs are refreshing, the source is from a live streaming server. My question is how to add them to WP? Some the code is on the ...
0
votes
0answers
24 views

Woocommerce stratching images

how to disable image scaling? https://chromei.ru/stulya-obedennye/stul-obedennyj-buldog-m/ It's 304x400 JPG pic stretched to 513x675, this is rubber picture. Bigger browser - bigger stratching. I don'...
0
votes
0answers
22 views

can i use specific images for thumbnails in post?

How do I use get_post_thumbnail_id for specific posts? I want to manually create a field with the ACF plugin and add it to the image post and replace "get_post_thumbnail_id". <?php if ( $the_query-...
0
votes
0answers
271 views

Post-processing of the image failed

When uploading 8 pictures via Media, Add New, I get this error: Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again. ...
0
votes
0answers
10 views

How to re-arrange images in default WP Gallery more than one image at once?

Im using default WP gallery with custom output. Thank's to that I don't need other gallery plugin. But if I have a lot of images, re-arranging images is very arduous process, cause I can move only one ...
0
votes
1answer
37 views

Get post thumbnail in specific size

$image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_id() ), 'images_posts' ); This code shows Post Images in the original size, but I want to show thumbnail in 160x213 pixel that I ...
1
vote
0answers
17 views

Set image size on media and text block with a function

I'm using the Media & Text block within Gutenberg. You can adjust the size of the image by dragging the small blue circle: Looking at the Media & Text settings on the right, it doesn't look ...
1
vote
1answer
16 views

How to find images in lazyload to set alt attribute?

i am working the SEO of my website and decided to use lazyload on the images. Problem is that when you run f12 Google Audit, the report tells me that every lazyloaded images are missing the "alt ...
2
votes
1answer
247 views

WordPress adding scaled images that don't exist (1536x1536 and 2048x2048)

I'm building a theme in _S and using native Gutenberg blocks. I have the following code via my functions.php file to set my image sizes: add_theme_support( 'post-thumbnails' ); add_image_size( '...
0
votes
1answer
22 views

Site only working in browser where I created it

I built a site. I used Google Chrome to do it. Everything works properly in Google Chrome [only on this computer]. (logged in to wp-admin, and out too) But... The site does't work in any other ...
1
vote
0answers
20 views

Image not shown in the theme as it's showing in HTML template [closed]

I'm working on a theme creation in WordPress. When I add <?php bloginfo('template_directory'); ?> before an image tag, it didn't work, and also I gave image url in .css file #about-bg-diagonal {...
1
vote
0answers
25 views

Imagick vs GD colour issues on image uploads

So I am using Docker for my local environment and uploading high-res RGB images to this. Using <?php phpinfo(); ?> I can see my local environment is running Imagick. Everything looks great on ...
1
vote
1answer
59 views

How to disable the suffix “-scaled” which is being added at the end of each uploaded image?

I don't know why, but now, Wordpress is adding a suffix "-scaled" at the end of each newly uploaded image. And, instead of keeping the original image link, it changes it to the "-scaled" version: I ...
1
vote
2answers
194 views

Disable Wordpress Big Image Size Scaling

WordPress is amazing and I am a very big fan of it. But the version 5.3 brought me (an many others, 1, 2, 3, 4...) a big problem with its new forced feature for auto-scaling down big images. I am ...
0
votes
0answers
17 views

Import images from old WordPress site into new site

I have exported both tables from old wordpress site of which gallery images i want to import into new wordpress site. After export, i follow following steps: --> In the wp_posts.sql file I did the ...
0
votes
0answers
13 views

Is there a way to set up an image custom field to function as a category field with a predefined photo bank?

I would like to know how can I create a predefined image bank by using Jetengine taxonomy or any other way/plugin. My main purpose is to use Forminator plugin post create template so that the user on ...
1
vote
0answers
19 views

Add new image block, set default class name and update it using Javascript

I am trying to programmatically set a default class on an image block, which is applied without the user manually adding it via the 'Additional CSS' field. I have tried applying a default style on ...
1
vote
0answers
33 views

Update an image block style programatically

I am trying to update the default classname of an image block that is being added to a page. In the editor backend view, I have a select drop down using ACF plugin, which programmatically changes the ...