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

learn more… | top users | synonyms (3)

1
vote
1answer
8 views

Custom image size / thumbnail - Crop to aspect ratio even when source image is smaller than set dimensions

Normally when you set a custom image size using hard crop - e.g. add_image_size( 'custom-size', 400, 400, true ); - you get the following results: #1 Uploaded image: 600x500 > Thumbnail: 400x400. #2 ...
-2
votes
0answers
6 views

How do you add image attribution?

I'm not just asking about the "add name / site link to bottom of your image" thing... How do you add information (tags, attribution, etc) to an image, so that when someone else drags it to their ...
-2
votes
0answers
9 views

Broken image (logo) in front page

I prepare my WordPress blog but the logo which is appearing in the top of the front page is broken. I made a check for for permissions in upload folder ant it is 755. I think is not the problem. The ...
1
vote
1answer
36 views

Get post attached image to display in admin dashboard

I've searched awhile for a solution on how to get the attached image in the post's editor to display within the dashboard but I am running into an issue. I've seen how to do this and can do this with ...
1
vote
1answer
25 views

Batch process: remove first image from post content

I already added a featured post image to all my posts (>1000). Some posts (around 700) still have an image at the beginning of the post content. Now I need to remove all images which are right at ...
0
votes
0answers
17 views

Moved Site - images do not show?

I moved a site recently, and copied over the images folder to the new server. For testing purposes, I could not get these images to come up while my hosts file on the Windows machine and my Linux ...
0
votes
0answers
13 views

How can I compress original images?

I sized and cropped images to 945 x 945 prior to uploading. I have a few smaller image sizes that get created and just realized that since wp compresses at a default of 90% quality (fine by me for ...
-3
votes
0answers
20 views

background-image not working properly in css [closed]

I have uploaded the image to the server. Image address is http://localhost:8080/wordpress/wp-content/uploads/2016/07/radio.png And I have used this CSS : background-image : url('http://localhost:...
1
vote
1answer
19 views

How to get file URL from media library

I am attempting to copy a file from an external URL and then reference the local copy of the image via a WordPress shortcode. So far I have managed to copy the external image to the media library ...
0
votes
1answer
19 views

Why do I have blury images in Wordpress

It seems Wordpress is doing an exceptionally bad job when it comes to re-sizing my images. In the media options I have set my image sizes to my liking. Most notably 857px wide for the medium thumbs, ...
0
votes
0answers
28 views

Solution to bulk attach photos to preexisting products

I'm searching for a solution to my linking problem. I have a .csv file with all product information in the correct columns. And a separate .zip file (650mb) with all the product photos. The photo in ...
0
votes
1answer
19 views

Where to add my code to auto attach images to existing products

I've got this code from an answer to a previous question: add_action('add_attachment', function( $attachmentID ) { if ( ! class_exists( 'WC_Product' ) ) return; // if no WooCommerce do nothing //...
1
vote
1answer
22 views

change the $content_width

I am creating a child theme based on 2016 I want to set new upload media images add_action( 'after_setup_theme', 'azm_add_image_size' ); function azm_add_image_size() { add_image_size( 'helen', ...
0
votes
1answer
20 views

Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )

i want to disable the option to save as images on smartphones (android and IOS) using mobile browsers like chrome, firefox, ie, cm, opera, ie. Could anyone have a solution to this? chi
0
votes
0answers
13 views

Force WordPress, themes & plugins into using defined sizes

Many users do not compress or resize their images before uploading them into a post, so source images can often be a lot larger than the settings in /wp-admin/options-media.php. Many theme and plugin ...
0
votes
0answers
16 views

Getting custom image size URL in functions

I am trying to load preload-thumb into data-pil-thumb-url within the functions.php file so when a user edits a post with the TineyMCE it is automatically wrapped in a figure with the right classes. ...
0
votes
1answer
12 views

Use default image as var

I would like to use a default image if there is no thumbnail. The image needs to be output as $image. But I can't work out how to use the image path to the default image. if ($locimage) { $...
3
votes
2answers
116 views

How to change the markup Wordpress inserts for post images

I am developing a theme with Underscores for WordPress. When the user adds an image using the TinyMCE editor the following code is inserted: <img class="wp-image-45 size-full aligncenter" src="...
-1
votes
0answers
11 views

Create dynamic webpages of images based on image tags [closed]

I have a database of pictures associated with different tags. I want my website to dynamically create a webpage based on a specified tag. For example, if one clicks on "Puppies" I want all the photos ...
0
votes
0answers
35 views

Changing Names of Images Whose Filenames Contain Special Characters

I'm working on a site in the Spanish language. In this site the Admins have uploaded images whose filenames contain Spanish characters -e.g. é, ó, ñ etc... And these images do not display on iPhone, ...
-2
votes
0answers
12 views

Custom Multi-image Post

Can anyone recommend a way provide a simple multi image post form for my contributors or authors? I want to restrict the format in which they can post. The form should only allow image uploads (no ...
0
votes
0answers
14 views

Upload multiple images into one image per page

I want to upload bulk images which create multiple pages with a navigation (next page, previous page). At a high level I want galleries like 500px.com Example gallery. https://marketplace.500px....
-1
votes
0answers
10 views

With only one button, Can I upload image to media directory?

I searched and found some ways to upload images to media directory. They all need several elements. That is, one browser button, one is upload button. Can i only use one button to upload? So if i ...
0
votes
0answers
24 views

Add alt text to image posts using XML-RPC/functions.php

I am using the following part of code to upload images using xmlrpc: $content = array( 'name' => $title.".".$ext, 'type' => $type, 'bits' => new ...
0
votes
1answer
25 views

Custom field as featured image caption

The problem is: My featured image caption is not being shown since it is (still) stored in a custom field (called (wpcf-bildunterschrift). I can easily access the customfield, but not the field that ...
0
votes
0answers
20 views

Newly Uploaded Images Don't Scale Properly in Featured Images

It took me a bit to figure out what was going on, but here it is.... When I create a new post, and add a featured image to it, the image doesn't scale properly, like they used to. On the home page, ...
0
votes
1answer
18 views

No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file

I'm attempting to perform some basic jpeg compression by using the jpeg_quality hook inside my functions.php file but there is no compression/resizing taking place. I'm only measuring file compression ...
0
votes
1answer
50 views

How to create a thumbnail with php?

I am creating posts using wp_insert_post(), but these posts do not have featured images. I have a post ID, and a path to the image on my server, how do I set them as the featured image? EDIT : I ...
1
vote
0answers
44 views

Modify 'Sizes' Attribute for Images with Specific Class

I'm ultimately trying to add useful responsive image srcset & sizes attributes to images added in a standard Text Widget. I've found this filter which does allow images to get the default WP ...
0
votes
0answers
25 views

Retrieve a Page's Gallery's Images, With Custom Thumbnail Size and Links to Full Image

Using the following function: get_post_gallery( get_the_ID(), false ) Example: <?php /* The loop */ while ( have_posts() ) : the_post(); if ( get_post_gallery() ) : ...
0
votes
1answer
69 views

Convert canvas to image and upload image to server

I'm working on a wordpress site about blackout poetry for a university project, where the user can blacken parts of a text to create a poem. After the user has created his poem, we need to give him ...
0
votes
2answers
50 views

Disable resizing of gif when uploaded

Animated gifs are getting more popular on the web (again) and currently there is no good tool for resizing animated gifs. So I want to disable resizing/generation of image sizes for the gif mimetype ...
0
votes
0answers
20 views

Problem uploading multiple images to a custom field in a front-end form

I'm having trouble with a portion of a front-end form that allows users to create posts in my custom post type. I want to create an image uploader that will allow the user to upload multiple images. ...
3
votes
0answers
34 views

Wordpress crops some thumbnails but not others? [duplicate]

For some reason Wordpress is cropping some of my thumbnails proportionately rather than to specific dimensions for some images, and cropping them to specific dimensions for others. I want it to crop ...
1
vote
1answer
28 views

Putting a resized image into media library with wp_get_image_editor(

I'm using wp_get_image_editor() to resize and save an image that is being uploaded to the Media Library. $image = wp_get_image_editor( $newattachment_url ); if ( ! is_wp_error( $image ) ) { ...
0
votes
1answer
32 views

Consolidating two websites into one, but migrated images not appearing in Image Library

I am consolidating two websites (which are on the same server) into one. I copied the images from one website's directory to the other using rsync. rsync -av /srv/www/site1/wp-content/uploads/ /srv/...
-7
votes
1answer
50 views

show hide image script after 4 seconds [closed]

On my homepage I need a javascript/jQuery script to show our site logo image and close it after 5 seconds. Only when user visits the first time our site. No mouseover or clicks needed. Complete ...
2
votes
1answer
110 views

Gallery images titles - get from post

Is there any possibility to make a functions hook, which will automatically override titles of added images (or added during gallery creation) with post title? Just like in the example: - im creating ...
0
votes
0answers
7 views

How to retain image path of “choose file” after wrong form submission?

How to retain the image path of "choose file" after wrong form submission? thanx in advance. I have following code in the input form <input id="image" type="file" name="coupon_image" /> And ...
-4
votes
1answer
40 views

Regenerate thumbnails in S3 bucket

I am running a multisite wordpress website and all the images are uploaded to S3 bucket. I would like to change the template I am currently using with a new one. The problem is that all the old ...
1
vote
0answers
52 views

Wordpress not cropping thumbnails properly

For some reason Wordpress is ignoring my thumbnail sizes and keeping thumbnails cropped proportionately instead of specific dimensions. Here is what I have in my functions.php: add_image_size('main-...
0
votes
2answers
24 views

Newly uploaded images are not updating in featured image

Using the google page speed test I saw that some images were too large and needed to be resized. I used the ftp to download the necessary images, resized them locally, and then used the media upload ...
0
votes
0answers
11 views

Query by attachment image size

Is it possible to use WP_Query to get attachment images by pixel size? For example all images with a width of 500px and height of 300px. Or images with a height bigger than 300px. As far as i can ...
0
votes
0answers
24 views

Wordpress update removes picture or changes pic paths

I have a big problem. I have installed and configured Wordpress, on my test server and then on a live webspace. All was fine, the website went live. After a while, I logged in: And wordpress forced an ...
1
vote
0answers
31 views

Get image from parent category

I am creating a page which shows all post categories and image associated with the categories. Each category has a textbox for the user to paste an image's URL and the page will then display the ...
1
vote
1answer
9 views

SEO - Media File Name Updating

I've been asked to rename my images to better suit what they represent via keywords, for the purpose of SEO. However, I've noticed that modifying the media images name within WordPress doesn't in ...
1
vote
0answers
17 views

Images attached to posts from library link to 404 error page

Just building a theme but I am stuck with attachment images. When I add images from the library to posts (or pages) and link them to the "attachment page" I get a 404 error. The link is like "http://...
1
vote
1answer
24 views

Prevent image upload unless exact size

What I am trying to do is pretty special I think. I am using WC VENDORS PRO plugin. The sellers have 4 upload areas via the front end. They can upload a profile image, a store banner, and product ...
0
votes
1answer
16 views

List sub pages with custom field content converting image ID to URL

I am using the ACF plugin to create static (non-ecommerce) product pages. I am now making a page that lists all the sub pages with product name and the image added to the product_logo custom field. I ...
2
votes
2answers
42 views

How to insert a local image with custom size

I am not very familiar with PHP yet but I am trying to build a Wordpress theme. In one of my theme files I simply want to insert an image (located at the theme directory /img/image.jpg) with a link ...