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

Set Featured Image not opening - Stuck at loading

I am unable to set featured image for posts/pages. The 'set featured image window' opens but never loads and thumbnails. Then I tried to upload the image using Media, it stucks at crunching. But ...
0
votes
0answers
41 views

wp_generate_attachment_metadata(), display image content after post, why?

I succeed to upload and attach an image for an article created in frontend in wordpress, otherwise when I used the wp_generate_attachment_metadata() after the generation I have something like that : ...
1
vote
1answer
89 views

How to add a class to the attachment images

When I'm in the Wordpress editor and I add an external image with the 'img' button, my html result wil be like this: <img src="http://example.com/image.jpg" alt="image" /> How can ...
0
votes
0answers
153 views

SQL query for converting post meta image url to featured image

WordPress guru, we have a question: We work on a website, which was not updated a while. Most of time it have wordpress 3.2 installed. We've updated it to the latest wordpress version, but ...
0
votes
2answers
5k views

Allow contributor role to upload images and not edit already published articles

I have the following two requirements: I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn't be able to delete existing ones ...
0
votes
0answers
27 views

Stop guest from viewing entire media library

When you select an image on my website, the user can scroll through the entire Library. How can I limit that. Really don't want to change my theme but it seems to be part if the problem.
0
votes
1answer
38 views

Adding Multiple Images to Sidebar Through Dashboard

I have a sidebar with 3 images hardcoded. I'd like to make it so you can change these through the WordPress dashboard. What's the easiest way to accomplish this? Using a plugin, custom post type? ...
0
votes
3answers
1k views

Thumbs and pictures not showing anymore

After moving my site to a new VPS cloud server, things worked fine for a couple of days, but this morning all of the thumbs and pictures stopped showing, even though they're still in the same ...
0
votes
1answer
57 views

Hide image gallery in Woocommerce if NO image [closed]

I have a few products with no images but they template leaves a big empty space where the image should be, I was wondering if there was a way to hide this product gallery section only IF there are NO ...
1
vote
2answers
2k views

Errors when uploading images in WP 3.5

I'm trying to upload images in WP 3.5 to set featured images for posts. Unfortunately I get the following error message: An error occurred in the upload. Please try again later. The installed ...
0
votes
0answers
23 views

Is it possible to add a custom tab to the Featured Image Modal and if so how?

I tried using the media_upload_tabs filter but that didn't work. This question looks very similar to this Adding A Custom Tab To The Insert Media / Add Featured Image Modal but there that wasn't ...
1
vote
1answer
35 views

How to translate get_intermediate_image_sizes?

I use the following code to get image sizes: public function getImageSizes(){ global $_wp_additional_image_sizes; $sizes = array(); foreach(get_intermediate_image_sizes() as ...
0
votes
1answer
40 views

Create a custom attachment thumbnail for quick page load

I've been trying to find a way to create a custom image attachment thumbnail. I want to display an image attachment thumb and link to the full size. (FYI The thumb is to get quick page loading speed ...
0
votes
0answers
35 views

Gallery image archive page

I need to create an image gallery archive page. Actually I need something like where user will be able to create an image gallery with a few images and with a title through admin panel. The gallery ...
0
votes
1answer
26 views

Thumbnail gallery by date and taxonomy

I'm having problem to create something like image gallery. What I wanna do is, in the home page sidebar, there will be a box named photo gallery which will contain 2 or 4 images thumbnail (just like ...
0
votes
1answer
109 views

How to set twenty fourteen header image at 100% width?

if function wpse_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'wpse_header_args', array( 'width' => 1460, 'height' => ...
0
votes
1answer
305 views

Extract image src from a post and send it to an external form

I have created a Facebook App to upload photos to facebook from image url with help of some tutorials. It needs an image url and description. I want to put a button "Upload to Facebook" below every ...
0
votes
0answers
53 views

How to replace all images within exported xml files to demo.jpg?

I'm going to create a demo data by exporting a site (Wordpress Export Tool) and get an xml file. I don't want my users who import my xml and get all actual images of the site. Is it possible (in not ...
2
votes
2answers
4k views

Retrieving images from a NextGEN gallery

I'm not sure if this is possible but after extensive searching I can't find an answer. What I want to do is to get all images from a NextGEN gallery so I can display them in a custom slideshow within ...
1
vote
3answers
2k views

How to display post title & excerpt when mouse hovers on an image?

I am bit busy with developing one fashion website, currently (http://test-domain.zakirsajib.co.uk/), where I have images come from posts and when mouse will hover on any image, the corresponding post ...
1
vote
1answer
7k views

Displaying a featured image (only img url) as the img src?

I have the following code: if (themedy_get_option('product_gallery')) { add_action('genesis_post_content', 'themedy_product_images', 1); } function themedy_product_images() { ?> <?php ...
1
vote
2answers
327 views

Set jpeg_quality for certain post-types

Without using timthumb, does anyone know of a way to set jpeg_quality for certain post-types or posts?
2
votes
3answers
590 views

Caption in Page adding unwanted 10px to width

I'm trying to create an image with a caption in a Page I'm working with. In the image options, I have it aligned right, with an image width of 220. Without the caption I have no problems, however with ...
3
votes
9answers
449 views

disable WP automatically inserted line breaks after an image

I've set medium sized images to a custom size which should allow for both of the images to align horizontally within the post. (The full post width is 880px, medium images are set to 413px.) My ...
0
votes
1answer
140 views

How to add “alt” attribute for image during upload at WP front-end?

At WP Front-end I create a upload form for users. That form has three input fields (title, tags and upload). So I want to add "Title - Tag - file_name" as alt attribute for images during the file ...
0
votes
0answers
10 views

Importing images from blogspot to wordpress

The import process is easy enough and everything is imported correctly. The one thing I can't figure out is how to change what size image gets imported into the posts. The image that gets imported is ...
0
votes
0answers
22 views

Linking Images to Post Page from Categorized Gallery

I used the code from this thread to create a plugin that automatically makes a gallery out of images attached to posts with certain categories. It works great, but now I want to make the images link ...
0
votes
1answer
25 views

adding image in the header of my dev widget

i want to add an image to the header of my widget in a div tag like so: <div class="header" align="center"> <a href="http://www.link.com"><img name="Header" ...
0
votes
0answers
13 views

When adding media, can I filter the HTML generated from “Insert From URL” before it hits the editor?

function test_function( $html ) { return $html . 'TEST!'; } add_filter( 'post_thumbnail_html', 'test_function', 21 ); add_filter( 'image_send_to_editor', 'test_function', 21 ); add_filter( ...
0
votes
0answers
38 views

Change the image for a certain URL

Currently we have an image at url /wp-content/uploads/sites/3/2014/07/filename.jpg The image contains incorrect information, and we've already sent emails out containing links to this image. We'd ...
0
votes
1answer
146 views

How to get relative URL of medium sized featured image?

How to show featured image (medium sized) relative URL (relative to the website root)? I need something like this: uploads/214/07/image-600x400.png I tried with this: if ( has_post_thumbnail()) { ...
1
vote
0answers
20 views

How to get rid of the strange sizing of links around posts? [closed]

I am currently running into a bit of a problem on my Wordpress site. I am designing a theme using the Bones framework, and after working for a while I have discovered a weird bug with links. Any time ...
1
vote
0answers
17 views

Replacing the content of an image attachment using API

I have an existing image attachment, with a given ID. Is there a way, using API (specifically, Python Wordpress XML-RPC), to upload another image instead of the existing one, without creating a new ...
0
votes
1answer
100 views

How in insert image path in Wordpress database that will display product image in wp admin not on front end?

$insert = $wpdb->insert( $prefix."posts", array("post_title" => $posTitle,"post_content" => $postContent,"post_status" => "publish","post_type" =>"product")); // select products ID ...
1
vote
3answers
179 views

Out of memory error reporting

When users upload very large photos and memory is tight, it seems like Wordpress runs out of memory - fails to resize the uploaded photos and does not create the necessary metadata ...
0
votes
1answer
29 views

Surround uploaded image link with div

When you upload image you have smth like this <a href="http://vitya/wp-content/uploads/2014/06/8.jpg"> <img class="alignnone size-Small x Big wp-image-65" ...
0
votes
1answer
22 views

Featured Images link to post parent

I want to reuse featured images for new posts. So a single featured image from the media library is attached to more than one post. When i use post_parent ); ?> on the attachment page to go back to ...
0
votes
2answers
56 views

Change the background of each post according to the category

I am using the Hueman Theme. What I want to do is that the background of all the posts should change according to the category of the post. Please suggest something
0
votes
0answers
11 views

How to change the structure of an image attachment in a post?

I'm trying to solve a problem with the attached images in a post. Somehow the structure is not working right on a theme i'm using. Instead of showing a div with the class "wp_attachment" is just a h6 ...
0
votes
1answer
53 views

How to intigrate multiple image uploader in a custom post type

How can i add this type of field in the custom post type
0
votes
2answers
48 views

the_content() brings the medium size image [closed]

So I have the problem, the image I want to dispaly in post is not big enough and in my preffered size it gets bad quality, then i noticed that is not the default size image returned it's medium size ...
0
votes
3answers
1k views

removing the featured image from the post

This is a twentytwelve wordpress child theme, and it's located at www.travelwithcastle.com I'd very much like to delete the enormous preview pic that shows up on top of the actual post page. It's ...
0
votes
2answers
77 views

How to check if there is image title, caption, description?

I use this code to display featured image title, caption (excerpt), description (content): echo get_post(get_post_thumbnail_id())->post_title; echo ...
0
votes
0answers
37 views

Get the first image URL of a post, by order (featured, first image, then default)

I want to get the first image URL of a post, in this order: first get the featured image of the post, if not, get the first image inserted on the post, if not, use the default image. At the moment ...
-3
votes
1answer
65 views

How to show file type of featured image?

How to show file type of featured image in post on single.php? For example: Featured image type is: ".jpg" I can get mime-type, like "image/jpeg". It could be also some check of image mime-type ...
1
vote
0answers
18 views

Post and featured image have the same name, why is the attachment (image) is showing and not the post?

How do I get the actual POST to display - and not the thumbnail of the image? I have tried to redirect the attachment to the parent post, but that gets caught in a redirect loop. For an example - ...
0
votes
1answer
189 views

Get the size (size in Kb or MB) of an featured image?

I need to display some featured image info on post page. Among other info I need to display file size of image (featured image of post). I tried this function inside single.php. <?php function ...
0
votes
2answers
34 views

Moving an image to the side [closed]

How do I move this image on my WordPress site to the left side? I don't know which file to look for and which code to edit.
0
votes
1answer
62 views

Image paths on custom post types getting /post_type/ added to path

Whenever I use a JavaScript path to /images/imagename.jpg or within CSS ie. background: url(../images/imagename.jpg) works fine sitewide giving me an expected path to an image that looks like this: ...
0
votes
0answers
113 views

How can I rotate images in Wordpress?

I'm receiving the following error while I attempt to edit images within Wordpress: "Could not load the preview image. Please reload the page and try again." What would cause this? Wordpress ...