Tagged Questions

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)

2
votes
1answer
93 views

Why html tags are being appended to my pictures?

I have a WordPress Network installation. In main site, there is no problem (at least related to on I'm talking about it here) but meanwhile in the other site (my subdomain site) pictures appear to be ...
0
votes
0answers
45 views

Broken Images After DB Name Change

I have a problem I have been unsuccessful in troubleshooting or finding other questions and answers for. My site was displaying fine. I changed the name of my database from "mydomain_beta" to ...
0
votes
1answer
149 views

How to get the real file type for images that do not have an extension

So i have a front end form that let users upload images from an URL... Everything its ok when the image URL have the proper extension like this: http://mydomain.com/image.jpg but when the image url ...
0
votes
1answer
90 views

ACF Image Object Sizes Issue on Multisite

I am using Advanced Custom Fields and have added an image with the return value being an image object. In my theme I if I dump the values of the object all the URL's for sizes are the same regardless ...
0
votes
0answers
163 views

Custom User Role: Upload and edit images, but not edit posts - any other way?

I have a question pretty similar to this one: Why does my custom WP role need edit_posts to edit images? but I couldn't make their solution work. And I couldn't comment there because I don't have ...
0
votes
2answers
89 views

Create a link to full-sized image attachment?

I'm using some transitional css to "slide" up a div (".mask") which contains a short excerpt of the post when you hover over the post thumbnail. This works very well, but I'd also like to add a text ...
0
votes
1answer
147 views

Images are not showing up in “Uploaded to this post”

I had to delete all my files of web site for some reasons. Then I've restored the files back to host. But the problem is that; Firstly, I uploaded all the images (about 4000) to upload folder via ...
0
votes
2answers
119 views

Issues with the excerpt (wordcount/HTML/images)

Struggling here with the excerpt and options for it. (NOT looking for a plugin and not extracting from the content, we add seperate excerpt content) We want to have an excerpt limited to a max. ...
0
votes
0answers
8 views

How can I process $post->post_content before echoing it? [duplicate]

I have a sole image gallery inserted into a page as the content. I want to process the images with regular expressions before echoing them. When I get the content with $post->post_content only one ...
0
votes
0answers
10 views

Associate an image with a category? [duplicate]

Is it possible to associate an image with a category in Wordpress? I'm outputting a list of all categories and would like to feature an image alongside each category name.
0
votes
2answers
50 views

Check if custom thumnail size image has been cropped to the correct dimensions

I'm looking for a way to check if an image has properly created a custom thumbnail size that has been hard cropped. add_image_size( 'homepage-thumb', 1676, 828, true ); $size = "homepage-thumb"; ...
1
vote
0answers
207 views

Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress

Can anyone tell me how to auto fill/add same image title in title, caption, alt text and description while uploading any image in my WordPress Posts.
4
votes
4answers
733 views

Each custom image size in custom upload directory?

I want to upload my custom image sizes in custom folders. The folder should have the name of the selected width. For example: If I add these custom sizes... add_image_size('custom-1', 300, 9999); ...
0
votes
0answers
52 views

Use mapped URL on images

I have wordpress installed on my own webspace and have the blog on some native URL like https://user.foo.bar/wordpress/, but I don't want this URL to be public. Instead I want to use a mapped URL for ...
0
votes
1answer
54 views

preg_replace not removed “class”

Use this code to remove the label "class" of the images, but does not work. The label does not disappear in the new post. function the_post_thumbnail_remove_class($output) { $output = ...
0
votes
1answer
74 views

Image upload and crop in wordpress

I am new to wordpress and buddypress plugin. I want image upload and crop functionality in a new page. How can I do this. I searched over the internet and couldn't able to find a tutorial to do this. ...
1
vote
1answer
2k views

Get Image Description

I'm trying to make a post split in 2 columns. The first and left one is going to be any image inside the post, and the second and right one will be the_content() (excluding the images). So as of now ...
0
votes
1answer
72 views

Resize not resizing images with Capitial extension like JPG

I have used thie resize method to resize image and its working fine but only the problem which i am facing right now is that is not resizing image with extension in capital letter like JPG,JPEG,GIP. ...
0
votes
0answers
16 views

Resize photo on wordpress [duplicate]

Based on Function add_image_resize in wordpress http://codex.wordpress.org/Function_Reference/add_image_size if i have rule in functions.php like this add_image_size('featured-slider', 940, ...
1
vote
2answers
1k views

How to add qtranslate multi language support for media?

The multi language plugin qtranslate works for custom post types but there is no capability to translate media information like title, description, captions for images. I am using the following code ...
0
votes
0answers
40 views

On upload, create and resize multiple copy of the upload without any cropping?

I would like to resize new upload images in different size. However, uploads can be portrait or landscape images. Is there a way to duplicate the upload image and scale it proportionally (keeping ...
0
votes
0answers
79 views

build plugin wordpress error when uploading image

I just want to upload an image and I'm building my plugin with this tutorial. But in the part 3 it says image upload should work. However when I try to upload image it's not working. I'm uploading my ...
0
votes
0answers
99 views

How to make the caption field mandatory and copy the caption field's data into alt tag?

BACKGROUND We are developing an Image Gallery for a Newspaper site (the theme was also developed by us). We are creating a custom situation for that: Querying (WP_Query()) for all the posts ...
0
votes
1answer
133 views

Only create image size when used in featured image

I'm using a post thumbnail size and I was wondering if there is a way to setup so wordpress only make the thumbnail size when the image I upload is used as the featured image rather than for every ...
7
votes
3answers
270 views

How to modify image editor dialog options on WordPress?

I am trying to hide the Alignment radio buttons for images uploaded to the post content area, but can't figure out how to add a custom CSS or JS file to the Image Editor dialog. I've successfully ...
1
vote
2answers
977 views

Remove images from get_the_excerpt

I'm using a custom function to create a shortcode that displays the latest blog post on the home page of a template. But I'm trying to NOT have it display any images. I know I can use the Advanced ...
0
votes
2answers
194 views

Display number of latest images from wordpress gallery in your homepage

I was trying to get a solution for something that I am trying to accomplish. I am using the wordpress native and simple gallery to show images in a page called: "gallery" so far - very simple. it ...
0
votes
2answers
89 views

Featured Image problem with resizing

I want include function to resize featured image to 80x80, im add this code in my function.php add_theme_support('post-thumbnails'); set_post_thumbnail_size(80, 80); But is not work very good, ...
0
votes
1answer
82 views

Where is the right place to store custom images?

I'm converting my old web project to WP and there are tons of book covers that aren't to be uploaded/managed by WP but by my own functions. Where is the right place to store such a kind of custom ...
0
votes
0answers
186 views

Rename uploads filenames to POST-ID on upload

I would like to change the way Wordpress rename uploaded files on upload. As I upload an image whose filename is "see-sunset.jpg", Wordpress will set up scaled versions and rename filenames to ...
0
votes
0answers
83 views

Delete post is image is missing or broken link

Is there a easy way to delete post if image link in post is broken? I want to move large number of posts, but I noticed that some images may have broken links (to external sites) and images are ...
1
vote
2answers
319 views

copy attachment title to description and alt text

I have a blog with a lot (over 1000) images. Each image has a meaningful descriptive filename. Wordpress has title caption and description fields for images. What's the easiest way to batch process ...
1
vote
1answer
531 views

Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”

Good morning, I am trying to change name format that Wordpress uses to rename uploaded files. As I upload an image whose filename is "desert-landscape.jpg", Wordpress will set up scaled versions and ...
0
votes
1answer
24 views

> added to images link in Wordpress

For some reason today my Wordpress decided to add > to every image link on the website, resulting 404 on every image. Any idea how to resolve it? Nothing has been changed from the last time it ...
0
votes
1answer
228 views

Getting taxonomy images to display on single-post with their terms

Having some trouble with taxonomy images plugin. I am on single-post.php and I want to display my post's taxonomy terms & the term's associated images. Ideally, I'd like the taxonomy description ...
0
votes
2answers
57 views

Images not rendering

I have a baking blog that I run and recently I have changed the url. The problem I have now is when I add images to the posts or libary they are not showing/rendering. The uploading steps go ...
0
votes
0answers
421 views

How to specify image width and/or height attributes for images uploaded using Wordpress uploader

When I check my website speed using GTMatrix for many images uploaded using WordPress uploader that image(s) are missing width and/or height attributes. Wordpress by default provides width & ...
0
votes
1answer
31 views

Custom image sizes

I noticed lots of articles on how to add custom sizes for images (media). But how would I be able to add a custom size such as "width:100% and height:auto" this way it will make sure the images are ...
0
votes
1answer
47 views

Media Editor uppercase extensions to lowercase

What's the reason for making the extensions on uploaded images lowercase as soon as the upload is complete?
3
votes
1answer
3k views

How to create thumbnails for PDF uploads?

I'm developing a website that needs to allow users, within Gravity Forms, to submit a PDF file and have a JPG thumbnail created of the first page of the PDF that is then displayed in the created post. ...
-1
votes
1answer
37 views

add if statement to the featured image

I have a featured image. I want to add an if statement to the size. For example, if the featured image height exceeds 500px I want to add something. Is that possible ?
2
votes
1answer
70 views

How to Change Wordpress Image URLs

I am facing a problem related to image URLs on one of the website that is bestappspoint.com Most of the images in this site are with capital letters in URL (I didn't know the consequences before) but ...
1
vote
3answers
210 views

How to resize images due to container width automatically server side/without CSS

Does anyone know how to resize the served images, so the image has a width due to the content containers width. I do not mean to resize the image via 100% width css, but instead resize the actual ...
2
votes
2answers
3k views

get_post_gallery_images returns thumbs . I want full size

I have the following code on my site. <?php // image gallery content if( has_shortcode( $post->post_content, 'gallery' ) ) { $gallery = get_post_gallery_images( ...
6
votes
1answer
907 views

How do I hook into WordPress to save an uploaded photo as an alternate size to an existing photo?

I have image resizing disabled in media settings by setting thumbnail, medium and large size dimensions all to 0. For every photo on my blog, I upload the same photo in three sizes: large/full-size ...
0
votes
0answers
80 views

delete unattached images on post submit

I have given permission to the users to register on my blog and add the contents (posts). Blog post will allow only 3 images to be inserted (please see the screenshot below) achieved by using custom ...
0
votes
0answers
14 views

How to add an image in the widget zone? [duplicate]

I want to add an image to the sidebar, where widgets are displayed. How can I do it?
0
votes
1answer
153 views

Determine if get_the_image has image on Get the image Plugin

is there a way / function to determine if Get the image plugin successfully grab the image from post? Something like has_post_thumbnail on WordPress featured image. I need to know if featured image ...
1
vote
1answer
249 views

Use Filename for Alt and Title Tags

I currently name all of my image files like this: Earth the Blue Planet.jpg Which when uploaded gets changed to this: Earth-the-Blue-Planet.jpg I was wondering if it is possible to have the ...
0
votes
1answer
141 views

Strip Image Classes from HTML Output

Does anyone know how to remove all of this from the image HTML? class="aligncenter size-full wp-image-31053"