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)

0
votes
0answers
6 views

Custom post submit form

I have a photo blogging website, and I want to create a custom form for posting posts. I got stuck on the part where I can upload and set a future image at the same time. With the standard WordPress ...
-4
votes
0answers
13 views

Instagram post embeds don't show image

On my site the Instagram embedded posts don't show images but they show hashtags. What could be the issue? Console Dump: JQMIGRATE: Migrate is installed, version 1.4.1 chrome-extension://...
1
vote
1answer
71 views
+50

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 ...
-1
votes
1answer
9 views

While doing a bulk upload the Media Images are showing blank?

I am uploading all my images through media library. After uploading images I am giving image name in my bulk upload excel file and adding that image name into post and postmeta table. The image is ...
1
vote
3answers
76 views

Get attachment ID of author_meta image - Attachment Metadata

I've created a custom field in user profile where upload a profile image. It's very simple. To create fields I've used: add_action( 'show_user_profile', 'cover_image_function' ); add_action( '...
0
votes
2answers
632 views

Removing height and width from images with a caption

I am using WordPress with Twitter Bootstrap 3 and have an issue when it comes to images with captions. Images with captions are given a height and width attribute which stops them from being ...
0
votes
2answers
442 views

Use Exact Image Size using add_image_size

I have a pretty basic question. It may be very noob question, but it is bothering me a lot. In my theme I've added a custom image size like this: function img_update() { if ( function_exists( '...
0
votes
0answers
9 views

Empty temp image folder daily using wp_cron

I have a folder on my server that holds temporary images. I would like to empty this folder daily to free up space. I am using the following cron job: add_action('images_event', 'images_weekly'); ...
0
votes
0answers
7 views

How to prevent script from updating each image in Custom Image Widget

I found this create question here where you can create a custom image upload widget. Everything works great except as the disclaimer in the answer mentions every time an image is updated (if multiple ...
-1
votes
1answer
11 views

How to place text and button over image silder [on hold]

I am trying to place some static text and clickable button over image gallery slider from Visual Composer and was wondering how I can achieve this. Here is a screenshot of what I'm talking about. ...
1
vote
1answer
12 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 ...
0
votes
1answer
568 views

How to get all inline images in post content?

I want to get all inline images in the post content. The get_children() method doesn't work for me because they could add the same photo twice. Also this only gets "attached" images, and they could ...
-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 ...
0
votes
2answers
78 views

Automatically generate missing images

I'd like to auto-generate images, or rather image sizes, in old posts where the size is currently missing. Specifically I'm hoping to generate sizes on the fly when a specific (old) image size is ...
0
votes
1answer
549 views

getting attachement images src and add classes

I have posts whose each contains 4 attached images. what i'm trying to do in my single.php is to get all the 4 images src to be abble to add different classes to each images. <img class="image_1 ...
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 ...
1
vote
1answer
37 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 ...
5
votes
2answers
770 views

Navigate with keyboard in Gallery shortcode

I am using Wordpress Gallery shortcode and I was wondering if there is a way to navigate using the arrow keys? Like if I view an single image and used the right arrow to navigate to the next image in ...
1
vote
2answers
59 views

Featured Image in 4.4 should be larger on mobile device

I work on a theme that displays 3 columns with images, so the size for thumbnails on large displays will be 360x240px. When resized, on some mobile devices, like iPhone, there will be just 1 column ...
4
votes
1answer
55 views

Pb with responsive image sizes in WP 4.4

I don't understand how to customize responsive sizes images in WP 4.4.1. The only available hooks that I see are wp_calculate_image_srcset and wp_calculate_image_sizes, and neither has the named ...
4
votes
1answer
360 views

the_post_thumbnail responsive srcset not populating with custom image size

I am trying to use the new responsive images feature in Wordpress 4.4 but I keep running into a particular problem when trying to use the_post_thumbnail with a custom image size. It seems I cannot ...
0
votes
0answers
18 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 ...
2
votes
3answers
8k views

How to add images to taxonomies?

Q: Is it possible to add images to all of my taxonomies (default and custom ones)? Note: I do not want to use any plugins (not my favourite solution for design related matters). Usage: I want to ...
-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 ...
1
vote
1answer
975 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
1
vote
2answers
759 views

Why isn't “background-image: url”working with Bootstrap carousel on WP?

When I made a Bootstrap carousel in plain HTML it was working just fine, but when I pasted the code into Wordpress the carousel is completely white. It's not a problem with the path because it will ...
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
0answers
54 views

Thickbox Opening IFrame instead of Featured Image

I am trying to open the featured image on the single post page in a WP Thickbox, but it's opening the entire post in an iframe. Here is my code: <?php if ( has_post_thumbnail()) : ?> ...
0
votes
2answers
573 views

Image and shortcode not showing in excerpt

I've paid to someone to create a theme for me. Everything works fine, expect the excerpt on category posts. It only shows an excerpt of the post ( not image ) and when I add a shortcode in the ...
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
306 views

How to add an image for unit testing?

I have to test the function where it calls wp_get_attachment_image_src. How do I add an image for testing, because right now if I call this method it returns false.
0
votes
1answer
860 views

How to insert image path in database to display product image in wp-admin?

In which database table and column do I need to insert an image path, in order to display product images in wp-admin (not on the front end)? I insert products by query in WordPress, rather than insert ...
0
votes
1answer
2k views

How do I add a featured image to a single post page?

I'm using the Pinboard theme on WordPress 3.9.1. I'd like to edit Pinboard (or, more accurately, make a child theme) so that on single post pages, if the post has a defined featured image, it displays ...
1
vote
1answer
23 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
1answer
701 views

Automatically Add Caption in image

I want to automatically add caption for each picture appears in the name of the image or the alternative text example Caption add automatic
10
votes
5answers
18k views

Stop wordpress from hardcoding img width and height attributes

I'm wondering if there's a simple way top stop WordPress automatically hardcoding featured image height and width attributes, other than using regex... As I'm using a flexible grid for my project (...
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) { $...
0
votes
1answer
102 views

Any plugins that upload, resize, and display images? [closed]

Here is an ideal workflow for my situation: Upload a folder full of images Resize images according to a specified size Have the ability to organize these images into folders (collection1, ...
0
votes
2answers
998 views

How do I embed youtube video via url in frontend posting

I would like to embed videos & images by entering url in my wordpress site. In WordPress repsitory there are many plugins for embed video by url but in my site I want to enable this functionality ...
3
votes
2answers
122 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="...
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. ...
1
vote
1answer
500 views

Remove inline width from figure

I add an image with caption to my page and need to increase <figure> width. But wordpress is adding an inline width. [caption id="attachment_44" align="alignnone" width="216"]<a href="image ...
-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 ...
1
vote
3answers
2k views

Why can I not view image attachment pages?

I have a problem with images. I can see my uploaded images, as previously, through the media library. I can access each image by clicking on "edit". But if I then click on "View Attachment Page", I ...
0
votes
1answer
3k views

Visual Composer creating own shortcodes with vc_map() to return simple Image

I am using the Plugin Visual Composer with in a new Theme I develop. My question is about mapping shortcodes to Visual Composer arrays. The problem I get, when I try to make a custom element for an ...