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
2answers
32 views

Best practice for migration friendly images in posts/pages?

So I'm developing my sit in a WAMP environment with URL http://localhost:8080/wp1/ with the eventual plan to migrate it to live on the interwebs. I just noticed in my pages when I upload the images, ...
1
vote
1answer
45 views

Modify Image Source With The_Content Filter?

I'm very inexperienced with regex, however I'm trying to create a function that filters through the_content() and get_the_content() in order to modify the SRC of all images. The intended purpose ...
0
votes
1answer
48 views

Need to echo category id in multi-dimensional array

I have custom post types and categories created with the Types plugin. I have category images allowed/created with the Categories Images plugin. I have a loop that displays the posts of a category ...
2
votes
2answers
13k views

how to display post content without post image?

i've implemented a jQuery gallery for displaying several images within a post. the problem is that the_content(); also displays the post image. any ideas how to filter it? thanks
0
votes
0answers
45 views

Unrecognized image file after upload

I'm creating an iOS application using AFMultipartFormData AFNetworking to upload an image onto Wordpress site. On the Wordpress server side, the following data was received when I echoed $_FILES: ...
0
votes
0answers
12 views

Save & echo Image in Input - Admin seting page

in functions i have user code create fields get image url add_action('admin_menu', 'baw_create_menu'); function baw_create_menu() { add_menu_page('PH Plugin Settings', 'PH Settings', ...
1
vote
2answers
49 views

How to display a page's featured image?

I want to get the URL of a page's "featured image", as I want to use the page's featured image as the background image for the banner at the top of the page. The background image for the banner ...
1
vote
2answers
197 views

Gallery images stored elsewhere (preferably Google Drive)

I host client galleries on my website using the standard WP gallery but the disk space costs a lot this way. I was wondering if there's a way to show pictures in a gallery that are loaded from ...
0
votes
0answers
46 views

Base Image Missing When Uploading Images With Wordpress

Whenever i upload an image (ball.png) wordpress will auto generate a bunch of smaller images that are different sizes. e.g. ball-300x200.png. These images display fine, but when i set on of these ...
0
votes
0answers
44 views

Woocommerce new order admin email product thumbnails don't appear because of space character!

I would like to show the product thumbnails in Woocommerce new order admin emails. I have read some articles about how to do it and I changed the propriate line for this: ...
0
votes
1answer
1k 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 ...
-1
votes
1answer
420 views

wp_handle_upload Image sizes

What's the simplest way of getting wp_handle_upload To either change the size of the image it is uploading, or to get WordPress to generate the 3 sized images like it does in "crunching" when adding ...
0
votes
1answer
22 views

1px black line appearing down right side of thumbnails (theme snaps) [closed]

For some reason on most of the thumbnails there is a black 1px line to the right of the image. This looks to be a cropping issue or something but there is a 1px thick line on the right hand side of a ...
0
votes
0answers
18 views

Featured Image with specific width or height in percentage

My site has the post featured images in the main page, but shows them cropped. What can I do to change it so it doesn't do the cropping and degrade the quality?
0
votes
0answers
16 views

Resized Images get transparent for certain sizes

I am using Wordpress 4.3.1 with the Minamaze free theme. I changed the base URL and everything went fine, except for the images in the 3 featured areas in the home page, that - resized - become ...
0
votes
1answer
344 views

How to reference a theme image in a stylesheet?

I have a global element as part of my theme and I need to reference and image as a background image. I need the URL to the image. I assume that it's bad practice to hard-code the URL and that the URL ...
0
votes
2answers
22 views

big trouble with javascript

I have some js scripts that are working on my site but I have found that some of the images are not showing up. I only have this issue with WordPress. So I have a pause button that shows as it's ...
0
votes
2answers
217 views

If file exists with page slug name show image else nothing

I need to add a php code in a wordpress widget called PHP Code Widget which only asks for proper enclosing: All PHP code must be enclosed in the standard php opening and closing tags ( <?php and ...
0
votes
1answer
13 views

Is there a way to get attachment data?

So, I'm no big fan of how WP stores images (image data) and I was hoping there had been made some improvements in version 4.x. But alas no. When I say image data, I mean url, title, caption, alt ...
0
votes
2answers
90 views

convert post title to image

Im trying to convert the post title to an image. i created a php file in the theme folder image.php with the code UPDATE: working code require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php'); ...
0
votes
2answers
544 views

How to watermark wordpress images from wp-content/uploads folder with htaccess and php?

I have a Wordpress website, due to some limits i need to have originals of the photo at the serverside, but watermarked ones on a frontend and with direct opening of the photos. I'm using Frontend ...
0
votes
0answers
64 views

Use URL query string in img src attribute

I'd like to display images of my custom fonts on my (private) WordPress site. The font-creation website I use, FontStruct, has a URL-accessed tool for rendering a line of text in a specific font. ...
0
votes
0answers
13 views

can a user be forced to enter alt text?

Is there a way to force a user to add alt text to an image? Something like, if they don't add alt text when they upload an image, a big red box will surround the alt text entry line?
0
votes
0answers
12 views

Zero size SVG in WP

I have enabled SVG image in WP according this recipe. Now I have problem during insert image from Media to site. It looks image appears with zero size and is not visible. How to fix this problem?
0
votes
2answers
74 views

Allow SVG in WP step by step

I'm not strong in WP programming, bu I try to understand what to do to enable SVG in my site. I found that in need to add function below to functions.php: /** * Add SVG capabilities */ function ...
0
votes
0answers
22 views

The same picture looks different in different WP sites with the same theme

I have pictre shown below that looks differently when I place it to different sites that are created on the same theme: In site No1 it looks normal, like in my question body: In site No2 ...
0
votes
0answers
62 views

How to upload iPhone 6s photos using native WordPress app?

I used to have an iPhone 4s and used the WordPress app to upload photos to my blog. I just got a new iPhone 6s, and the camera has much better resolution. When I try to upload an image using the app, ...
0
votes
0answers
12 views

Attempting to add an imagemap/ content to Front Page — shows up only in meta description

I'm dealing with a nasty old theme for a friend that uses a huge slider as its homepage background image. I'd rather not scrap and recreate the site, as back in the day I put in a good amount of ...
0
votes
1answer
28 views

Removing Images from a WordPress Post

I wanted to remove the images from a WordPress post to give me more control of how I could layout the design for the front page of a website. After doing some messing around and failing, I finally ...
0
votes
0answers
23 views

Custom Wordpress Frontend Image upload - add description as post_content?

I have a form with 3 image upload fields. The Upload works fine and the images are attached perfectly. Now there's the problem that I have had to add a description field into the form - one for each ...
0
votes
1answer
34 views

Redirect Causes Missing Images

I recently built a new internal network using WordPress called inSite. Our staff can access it just by typing in insite in their web browsers or by typing in the complete address: insite.foo.edu while ...
-1
votes
1answer
273 views

Allow users to download media files directly from Amazon S3 (AWS plugin)

A site I'm working on hosts an image library we encourage users to download files from. We're using the AWS plugin by Delicious Brains to host our static content on a separate server from the main ...
0
votes
0answers
64 views

Image Expires Headers Not Working

I want to implement image expires header, in my wordpress site I tried this code in htaccess <IfModule mod_expires.c> ExpiresActive on ExpiresByType image/jpg "access plus 1 month" ...
3
votes
1answer
128 views

How do I detach images from posts?

Firstly I've seen some topics like this, but they haven't helped me. I've attached some images to a post via "Add Media" : And for showing these attached images, I used following code in ...
0
votes
0answers
109 views

Divi slider images not appearing

I've been using the divi theme for my website, and all of a sudden the images in the sliders haven't been appearing. In the html the image is there, but it's opacity is set to 0. Also, the slider ...
6
votes
6answers
10k views

Disable image attachment links

Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it's possible to do it manually when you add an image to a post but I want to disable this ...
0
votes
0answers
34 views

How to make Facebook share the featuterd image from url on Wordpress

I use this function to add the featured image from url on wordpress "Is it possible set a featured image with external image URL", but when i share the post on Facebook, Facebook doesn't grab the ...
1
vote
2answers
3k views

Add CSS class to every image

I want to add a CSS class "myimg" to every image both inside and outside of a post. What is the best way to approach this?
0
votes
0answers
23 views

Image Gallery / Thumbnail for Theme Framework through plugin form

I'm using WPUF plugin form in order to submit custom post_type from frontend and I need to implement the form to themes framework, so it can set the thumbnail / gallery in submitted posts. I ...
0
votes
1answer
33 views

Show last 12 uploaded images on home page, but only from posts

I want to show the last 12 images that were published with articles on my front page. This is the code to get the latest 12 uploaded images, but i want to show only the ones attached to a post ...
0
votes
0answers
115 views

Image rotation issue (horizontal picture uploading as vertical) — Exif issue?

I am building a classifieds site on WordPress where users can upload their ads/images from front-end. However, when horizontal pictures are uploaded, they upload as vertical. I looked into the issue ...
0
votes
1answer
45 views

Background image not appearing

I'm trying to add a custom background on a child theme. In the child theme's functions.php, I add add_theme_support( 'custom-background'); and the background option appears under the "Appearance" menu ...
0
votes
1answer
24 views

How do I set a specific size for my image?

How do I set a specific size for my image? For example, I want my image size always be "800px" width and "600px" height. When I upload the any images, it should be that size. It should be responsive ...
0
votes
0answers
12 views

Set WordPress to Create different images format later, not during upload

I have an issue with the upload time. I allow users on my site to post step by step tutorials, and they often contain a lot of images. That makes the tutorial posting time very long, sometimes even up ...
0
votes
2answers
92 views

Full width images within post content

The content of the post is contained in a div which is centred in the page and thus any images in the post would be constrained to the width of that div.The image below illustrates what I would like ...
0
votes
0answers
34 views

How to ensure all image attachment page urls are using the filename and not the title?

I noticed something strange. On just a couple of posts, where the title differs from the filename, but not all, it uses the title instead of the filename. For example, take these two images: ...
1
vote
1answer
31 views

Print specific image size in galley loop

I have the below loop and would like to print a specific thumbnail size, as this loop currently prints the full size image. How would I print a smaller thumbnail? while ( have_posts() ) : the_post(); ...
0
votes
0answers
22 views

How to add custom thumbnail size to media library's display settings / size?

I have added a custom thumbnail size in the functions.php of my template like this: add_image_size( 'post_mainpic', 750, 250, array( 'center', 'center' ) ); Now I want to be able to select that ...
5
votes
2answers
993 views

How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?

As you can guess from the title, Im looking for a solution that allows me to alter the way Wordpress processes/saves its newly created images according to the media settings in the dashboard. This is ...
0
votes
2answers
2k views

Saving/Writing/Adding file to upload folder

Within a plugin I am generating an image, I would like to save this image to the upload folder and update the WPDB with the location of said file. I cant find any build in wordpress functions to ...