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
93 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
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
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 ...
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 ...
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 ...
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
3answers
415 views

All 3?: Responsive resizing of images + image width of actual image for small images + max-width for all larger images

What I'd like to achieve is to have images resize responsively – and for that I have to set 'width: 100%' – and at the same time set a maximum width to not have the image as wide as the content. To ...
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
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
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
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 ...
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
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
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
39 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
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" ...
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
19 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 ...
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
150 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()) { ...
0
votes
1answer
23 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
57 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
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
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
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 ...
-2
votes
1answer
76 views

Orientation of featured image in post?

Is it possible to show orientation of featured image in post on single.php? For example: Orientation of featured image is: portrait / landscape. I have found that this could be done by calculating ...
-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
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
1answer
190 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.
3
votes
9answers
452 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
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
31 views

Drag images with caption in WP editor

Whenever I insert an image without a caption in the post, the editor makes it an object that I can select and move around / scale. Whenever I insert an image with a caption, it inserts fine. I can ...
0
votes
0answers
114 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 ...
0
votes
0answers
40 views

Check if post has image

I'm displaying a list of posts and I want to indicate if the posts have images. I'm using this code to check if a post has an image. <?php $attachments = get_children(array( ...
0
votes
1answer
105 views

How to change image url?

How can I change the image url from this http://i0.wp.com/example.com/wp-content/uploads/2014/06/imagename Into this: http://www.example.com/image/imagename.jpg Or into this: ...
0
votes
1answer
63 views

Adding multiple images on my site - without using plugins [closed]

I have a question: In my child theme, I have added a footer.php, functions.php and styles.php. But, there is still one problem I've still not resolved. If I use the firebug addon, I see that a ...
0
votes
0answers
44 views

Force image rename based on post title for the following script

I am looking to have this upload rename image titles to match the post title. So instead of 0182012018228_sometitle.jpg it would be like daves-and-busters.jpg and the next file call ...
0
votes
0answers
18 views

How do I adjust/remove img widths when embedding posts in a narrower external site?

I have a blog on a PHP site i.e. http://mywebsite.com/blog/ and want to embed complete posts in a page on http://mywebsite.com/ include('blog/wp-load.php'); $post=get_post($postid); ...
0
votes
1answer
36 views

Display image for first sticky post only

Working on news paper site here i am using sticky.I want display first 6 sticky post its displaying very good but problem is that every sticky showing there post image(feature image) here i just want ...
0
votes
1answer
84 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 ...
0
votes
1answer
32 views

What does Wordpress media uploader do to image files on upload?

This question is specifically for images and what optimisation happens to these files when they are uploaded via Wordpress Media Library? Images .jpg .jpeg .png .gif And how is ...
0
votes
0answers
10 views

Fluid full window width carousel Image Problem in WordPress [duplicate]

Slider link:- http://coolcarousels.frebsite.nl/c/2/ Here is my HTML script for the slider- <div id="wrapper"> <div id="carousel"> <img src="<?php echo ...
0
votes
0answers
29 views

define multiple post thumbnails

i'm building a page for catalogs which shows all subpages in a grid with their selected post thumbnail. That works without a problem. Now I need a solution how to define 2 more pictures as a special ...