Skip to main content

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
34 views

add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scaled image(s) instead of hard cropped

Good Day! I am trying to achieve hard cropping of thumbnails in a custom WordPress theme. In functions.php I have added add_image_size('blog-large', 860, 484, true);. Thus, the fourth parameter ($crop=...
dfr's user avatar
  • 11
0 votes
1 answer
14 views

Edit Image button disappears when I make WordPress use Imagick instead of GD

Resizing images in WordPress Media -> Library was causing images to lose quality so after searching I found a solution to make it use Imagick instead of GD, I added following code functions.php ...
Vaughn's user avatar
  • 103
0 votes
0 answers
14 views

Why are my image dimensions smaller once they are published?

The title says it all. I checked the image URLs and saw that each image has ?resize=768%2C559&ssl=1 (or similar) appended to it after the .jpg part. Once I remove this, the image shows as normal. ...
Mus's user avatar
  • 119
0 votes
1 answer
35 views

How to allow shortcodes in image descriptions?

I understand how to add a filter to enable shortcodes for something: add_filter( 'img_description', 'do_shortcode' ); But, what's the actual hook to target image descriptions? img_description doesn't ...
WPdummy's user avatar
  • 23
0 votes
0 answers
39 views

When i create a blog and add an image to it, the blog of the that image is created and Published and search a blog to show both ? how to solve it?

I have created a blog on my website and added images. However, when I search on Google, both the image (Media) and the blog are showing up, but I only want the blog to appear. For example, the blog ...
Twopir Support's user avatar
0 votes
1 answer
47 views

Woocommerce Gallery Image Caption: Use "caption" — not "alt tag". Keep <img> alt tag as is

The website wasn't showing text ("captions") for the product images (the primary image and the gallery images). That was resolved by copying the woocommerce ../product-image.php file to the ...
Catsy's user avatar
  • 11
0 votes
0 answers
26 views

How can I avoid text only homepage loading?

I'm new to wordpress, using the Astra theme and a Starter Template. Sometimes my website drnickhayward.com loads as text only like this: This occurs randomly, not linked to recent page updates (I've ...
Nick Hayward's user avatar
0 votes
1 answer
61 views

'apply_filters' is breaking some shortcodes/HTML but not all

I am using AJAX to periodically reload the content in an article in order to create a 'live' page. This works fine for plain text and some basic HTML. But other HTML and shortcodes I add to the ...
notpoppy's user avatar
0 votes
0 answers
11 views

Issues with fixing wordpress site's formatting with images

I am trying to fix the images on a WordPress site by replacing the missing ones with the original images from the site's owner. The images were corrupted/deleted before I was brought in to help, and ...
kurosawaftw7's user avatar
0 votes
1 answer
23 views

Featured Image add tab

I was wondering if there's a hook/function to add a new tab to the Featured image modal window as shows in the picture below: I've found this thread How to add new tab to media upload manager with ...
mikebrsv's user avatar
  • 101
0 votes
0 answers
21 views

How do I add text or a message below the featured image in wordpress?

How do I add text or a message below the featured image in WordPress? Text appears in pages and articles. https://easyupload.io/afvm9s
mostafa's user avatar
0 votes
0 answers
28 views

Fix position of an image while using elementor pro gallary widget

I have image gallery built with Elementor Pro Gallery widget. I have set it show images in random positions every time I refresh the page. Now I want one of the images to always show in one specific ...
Atif's user avatar
  • 115
0 votes
1 answer
15 views

Neither intermediate_image_sizes_advanced or intermediate_image_sizes filter is firing

I got the example straight out of the docs. brand new wp install, no plugins, no nuthin. It doesnt dump and it doesnt die(). functions.php: function wpdocs_disable_upload_sizes( $sizes, $image_meta )...
Doug Cassidy's user avatar
1 vote
1 answer
218 views

How to disable trackbacks and pings on Images?

I got attacked by spammers that add comments/trackbacks/pings to my blog. I disabled everything, including old and new posts. But they found a way. I have no idea what it is. But it seems that every ...
jcubic's user avatar
  • 113
0 votes
0 answers
20 views

Images and menu links disapearing after saving

I am using Wp Bakery on a salient theme and have a bug where images or background images on 2 specific pages don't save or show once added. This also appears on the menu widgets, I will add a custom ...
mithrandir's user avatar
0 votes
1 answer
43 views

CSS how to target the caption of one individual image?

I can use .wp-element-caption to change all site captions at once, but I want to target one specific caption at a time. Because I'm adding additional CSS to a premade WP theme, I can't find a way to ...
sam's user avatar
  • 1
0 votes
1 answer
74 views

Define how an attached image is rendered

When inserting an image block to a post, I want to control how the image is actually insterted in HTML. Specifically, I want to replace the autogenerated img element with a picture one, in order to ...
dgnin's user avatar
  • 143
0 votes
0 answers
23 views

Images being uploaded via WP Media are not attached even they are used by some CPT posts

I would like to delete thousands of images on my WP websites which are no longer used by some CTP posts which have been removed even from Trash folder. However, I found out that Images being uploaded ...
James Black's user avatar
0 votes
0 answers
25 views

Convert all img tags into amp-img in wordpress content area

i have this code for our custom amp page in wordpress this code remove our all images in content area but i want these images show as a amp images $content = get_the_content(); $content = preg_replace(...
SS Apps's user avatar
0 votes
1 answer
337 views

All Wordpress Website Images Broken

Today my website is showing every image as a broken link. Checking the Media Library every link is broken, tried uploading new image files today they are also broken. Checking my hosting File Manager ...
LP2024's user avatar
  • 1
0 votes
1 answer
16 views

After importing using wordpress importer, posts in duotone theme do not pick up background colours from image

In wordpress.org: After importing using wordpress importer, posts in duotone theme do not pick up background colours from image. The posts in the original website have the correct background. If I ...
reallydismayed's user avatar
0 votes
0 answers
29 views

Copy Content with Images to Other Site

Wondering if anyone has come up with any creative workarounds for copying content which includes images from one site to another? I looked into it many years ago and didn't get far, but wondering if ...
Kenny J's user avatar
  • 105
1 vote
2 answers
184 views

Image alt tag is showing post title instead of Alt Text

The image alt tag shows the post title in the source instead of the Alt Text. function my_custom_image_sizes() { add_image_size('homepage-thumb', 329, 185, true); } add_action('after_setup_theme', ...
rudyards's user avatar
0 votes
0 answers
33 views

Trying WP editor to load full size image (not '300x300')

The site used to have a plugin that created a lot of image sizes from uploads (150, 300, 800 px etc). I removed these images from the uploads folder bc they were not used by the theme. Now, the WP ...
Ludo's user avatar
  • 61
0 votes
0 answers
28 views

How to get rid of a blank space where the featured image used to be?

I want my featured image, or post thumbnail, for the post to be displayed on the "posts" or "home" page (they are the same on my site), but not on the actual post. This is easy ...
Car's user avatar
  • 1
0 votes
0 answers
13 views

I can't insert more than one image when creating a custom email

If I only put one image in the html, it looks correct but when I put the second one in this case recyclingimg.png everything breaks function creacionQR($url, $emailDestinatario, $empresa, $nombre, $...
Miguel Angel Salas8's user avatar
0 votes
0 answers
18 views

How Do I Prevent Featured Image Caption Displaying Above And Below Image

I'm trying to add an image caption below my featured image on my single posts. I have this working, but weirdly they are also displaying above the image. I'm hoping someone can help point out the ...
Nick Rowe's user avatar
1 vote
1 answer
27 views

Allow unregistered users to post embeded images from other sites in comments

how can I allow unregistered users to post embeded images from other sites in comments? Right now the wordpress strips any image html tag for unregistered users. Thanks.
purpleyellow422's user avatar
0 votes
0 answers
20 views

How do I set attributes for all images in a site

I'm having CLS issues and I think I need to set the height/width attributes across all images. Whats the best way to do this? Is there a CSS code? Where should it be placed?
Brett's user avatar
  • 1
1 vote
1 answer
70 views

Set Featured Image of a post

How to set Featured Image when creating post using $post_id = wp_insert_post( $args ); ?
Foysal's user avatar
  • 445
0 votes
1 answer
127 views

'Add Media' to post - filter images

Can anyone help me with this? ... I am trying to locate and understand the javascript and/or php/ajax code that filters the thumbnails that show in the interface when a user clicks "Add media&...
patrick_here's user avatar
2 votes
0 answers
35 views

I can't see all images in my media library - How Can I reset the index of that library?

When I load my media library (either through the media tab on the left or editing posts/pages and adding images in that interface) it shows that I have 1206 images in my site. However when I click ...
pressword's user avatar
  • 370
1 vote
0 answers
23 views

Is there a way to eliminate flyout menus when adding a post?

It seems like each new version of wordpress adds more intermediate menus and menu options than the previous. Particularly heinous examples include the Preview button with its form-factor checkboxes, ...
nich's user avatar
  • 13
1 vote
0 answers
28 views

How can I remove the post image hyperlink or edit it to target="_blank" when inside a protected folder?

I am handling hyperlinks differently and I don't need the image to also have a hyperlink of its own. But if it must-have it, at least I don't want it to replace my site. I'd prefer it opened in a ...
LOTUSMS's user avatar
  • 125
0 votes
0 answers
22 views

image doesn't display when option on product page chosen

I am using the the theme storefront, on my product page, when option chosen the image for option does not display, it use to. I have deactivated all plugins to see if it would correct issue, it didn't....
AndreaLL's user avatar
2 votes
1 answer
222 views

Display image title and caption on posts and pages

I want a simple function to display image titles and captions alongside each other below the images on wordpress posts and pages. All the answers I have seen do not work for me. Either they leave the ...
Anand Prakash's user avatar
0 votes
0 answers
195 views

"Media Library" shows as empty, despite images being present

I am trying to clone a WordPress site, but the files in wp-content/uploads aren't shown in the the Media Library: OK: I have created a new subdomain for a new installation of WordPress, and I have ...
Torben Gundtofte-Bruun's user avatar
0 votes
0 answers
40 views

Why are PDF thumbnails over-saturated?

Often then colors of PDF thumbnails generated by Wordpress are wrong, they look over saturated. Is there something I can do to correct that, or is that caused by the PDF itself ?
mike23's user avatar
  • 6,029
1 vote
1 answer
138 views

Add custom text before all image captions in WordPress posts

I add captions to images in WordPress using the "Caption" box to indicate the photographer's name. I need custom text to always be displayed before the image caption, That is, now I just ...
Jusper's user avatar
  • 11
0 votes
0 answers
16 views

Upload media file failed. Uploadtest failed

When i want to upload a media file in wordpress (dashbord media) i get the message: Uploading “” failed. The file failed the upload test. php version: 8.0.30 Is there a string/variable that must be ...
Albert Lepoudre's user avatar
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 ...
vicartdesign's user avatar
1 vote
1 answer
111 views

How do I link an image in a svg file in wordpress?

I'm trying to use a svg file that contains a vector and an image, the problem however is that the linked image in the svg won't load. The vector part of the svg is loading however. I figure the ...
koeliga's user avatar
  • 11
1 vote
0 answers
76 views

images not loading on wordpress website hosted on aws ec2

I have successfully deployed my wordpress website on AWS EC2 , directed to the custom domain, with SSL installed through load balancer and route 53 records but now the images are not being shown in ...
celina kapoor's user avatar
1 vote
1 answer
450 views

Convert base64 string to WordPress attachment uploads multiple images instead of a single one

I'm trying to convert a base64 string to an image file and upload it into WordPress media library. It seems like the code is working, but, for some reason, every time I call this function it uploads ...
benjah's user avatar
  • 111
1 vote
1 answer
35 views

WP "optimizing" PNGs into thumbnails 5X larger than originals - FIX

As I am about to add over 50,000 product photos to a site in development, I am more than concerned about the thumbnails being generated and “optimized” by WordPress. Between WordPress, Woocommerce, ...
Swapot's user avatar
  • 11
0 votes
1 answer
23 views

Changing Theme produced a problem on some pages

When I changed the Theme to Twenty Seventeen a few of the pages had the following text instead of the Header image: Notice: Only variables should be assigned by reference in /var/www/wp-content/...
chrisgray13's user avatar
0 votes
1 answer
42 views

Redirection - bulk edit 404s to new tomain

Please help. I moved all (1500) posts from one category to a new domain. now I have a lot of 404 errors for posts and images. Trying to use Redirection, so I'm on the 404 page, bulk edit select all ...
Will Sher's user avatar
1 vote
0 answers
56 views

Responsive images, per image type?

I am new to understand responsive images. Unfortunately the resources out in the internet did not help me to fully understand the concept, so please bare with me. I would like to know hdavidow if it ...
kocjs's user avatar
  • 23
0 votes
1 answer
55 views

Understanding images handeling

I am facing an understanding issue with image accessibility on my WordPress website. Here’s the scenario: My website URL is mysite.com. I have a post titled “hello-world,” which is accessible at ...
kocjs's user avatar
  • 23
0 votes
0 answers
32 views

Image shows up in editor, but not in published blog post

I'm having a problem with my blog page. I'm adding images to my blog posts and I can see them on my back-end however, not in the published blog post. Am I doing something wrong? example page is: https:...
Lina's user avatar
  • 1

1
2 3 4 5
72