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

How do I insert a photo at the top of the sidebar?

http://www.beautybykatlin.com/ Hello, How do I add an image at the top of the sidebar? I had one there but I deleted it and I don't know how to get it back. Please help!!! Thank you!
0
votes
1answer
51 views

Custom image size in the_content loop

I changed the default image dimensions for the "large" thumbnail and re-generated my images using a plugin. The new image size is only shown on new posts created after the image size was created. How ...
3
votes
4answers
4k views

Applying automatic link class to images embedded to posts

I'd really love to be able to conditionally apply a CSS class to link elements of images embedded into posts, but I can't seem to figure this one out. Basically what I'd like to achieve is to replace ...
0
votes
0answers
7 views

Get the dimensions of an embedded image

I am trying to position content based on the size of the first embedded image in a post. I am retrieving the image URL using a custom function, and then using another function to retrieve the ID of ...
0
votes
0answers
8 views

Prevent WP from wrapping html in caption shortcode after 'image_send_editor' filter is applied

In my functions.php I have cooked up some functions to filter the attachment output code, when an attachment is sent to the editor. function filter_image_send_to_editor($html, $id, $caption, ...
1
vote
2answers
2k 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 ...
0
votes
1answer
34 views

Show more than 200 images in one post

I have gallery post and its have more than 200 pictures in single post. So, when i open this post, Its take more than 2 min to open page, and the images not open fast. What can do ?
0
votes
0answers
18 views

Display a fallback image when a specific metabox is empty [on hold]

I am having trouble displaying a fallback image when there is no image uploaded to a custom file metabox. My file metabox is call depmayorShot and when it is left blank is is suppose display ...
0
votes
3answers
343 views

After moving a site to another domain, all images are lost

I moved from www.domain1.com to www.domain2.com Trouble is the image paths left looking at www.domain1.com/wp-content/uploads... So when www.domain1.com went down all my images are now lost. I ...
0
votes
1answer
329 views

Image upload error?

I have searched everywhere for an solution and even though I have found others with similar issues it seems they are not the same. I have a fresh WordPress install and have it setup for multisite. ...
0
votes
5answers
106 views

Wordpress images not cropping properly

I have my post image thumbnails set with: add_theme_support('post-thumbnails'); set_post_thumbnail_size(1280, 436, true); add_image_size('general-thumb', 600, 339, true); They are ...
0
votes
1answer
9 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 ...
-1
votes
0answers
12 views

Using different images to featured images and the image of the product page

Wordpress version: last. Plugin: WooCommerce. Theme: Divi Elegant Themes. Hello! I would like to change the featured image displayed in the gallery on the main page of the products. The featured  ...
0
votes
1answer
383 views

Changing logo image in header.php upon language detection

So i'm designing a website that will feature the Polylang plugin for automatic language detection, but I've run into a bit of a wall with the logo image. It resides in header.php, but I can't think of ...
27
votes
10answers
13k views

Restricting users to view only media library items they have uploaded?

I want users to be able to upload photos using add_cap('upload_files') but in their profile page, the Media Library shows every image that's been uploaded. How can I filter that so that they can only ...
0
votes
0answers
7 views

responsive design images in old sites

I try to convert old static width sites into responsive. Problem with image elements, anywhere in posts and pages and also as background to other elements(for future images there are some plugins like ...
0
votes
2answers
25 views

Need help making my homepage blog image smaller than my post image

For example I have an image that's very long but want to show a cropped version of that but when people click my blog post from the homepage they see the longer version. I tried doing using the ...
0
votes
1answer
11 views

all images of past post messed up after changing theme

After I changed my wordpress theme, I realized that all past post are all messed up. I think is because the new theme is not interpreting "alignleft" the proper way. And I mean that because when I ...
0
votes
1answer
28 views

Generating a certain sized thumbnail on the fly?

I'm displaying a picture under each post on my homepage using the following PHP code: <div class="preview"> <a href="<?php the_permalink(); ?>" rel="bookmark" ...
0
votes
1answer
11 views

My customizer's setting doesn't set to the default and needed to click the control's “Default” button before it'll be set

Here's my sample customizer's setting and control: $wp_customize->add_setting( 'themename_img', array( 'type' => 'theme_mod', 'default' => ...
0
votes
1answer
19 views

Save the outputted image into the Media Library, with a different filename and extension

For example, I have this "/image.php" file in my "/theme-directory": header ('Content-Type: image/png'); $im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream'); ...
3
votes
1answer
3k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
0
votes
1answer
479 views

Site migration - some images not displaying in Media Library

After migrating a site from the live server to my test server (different URL), some of the images (not all) are not displaying. The src is correct, image is in the uploads folder, and everything ...
1
vote
1answer
437 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
0
votes
0answers
13 views

Why can I not paste an image from the clipboard?

At some point, I remember being able to paste images from the clipboard straight into my post as I was editing. This no longer works. I just upgraded from 3.something to 4.2.2 to see if that would ...
4
votes
3answers
624 views

List most recent image uploads, but only for specific custom post type

I can get a list of the most recent image attachments like so: $attachments = get_posts( array( 'post_type' => 'attachment', 'posts_per_page' => $number, 'post_mime_type' => ...
0
votes
1answer
9 views

Duplicate images in wordpress

I use wordpress for my site and have a problem with the'blog' section (here called news and events. Why is the first image duplicated - http://www.fiumanofineart.com/news-events/ I have tried to fix ...
0
votes
1answer
51 views

Url link to feature image in the portfolio [closed]

I am new to Wordpress. i have issue with Feature image. just i need to add URL to feature image(when we click on that feature image , it should redirect to that particular URL). also is it possible ...
0
votes
1answer
753 views

Disabling auto-resizing of uploaded images

Whenever I upload a large image, it gets resized to the width of the post. This will be a negative feature for comic reading sites. I need to display the full width images, which I can resize when I ...
0
votes
1answer
337 views

featured image as slider and multiple featured images (without Plugin)?

hi there i need little help can anybody tell me that how can i add multiple featured images to a page and than make it a slideshow i didn't find any answer on Google thanks looking forward help from ...
0
votes
1answer
572 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
0
votes
2answers
473 views

How to change the order of elements within a post?

I have a site with several thousand posts. They all have just a single attached image of varying size. All posts are displayed in full (no thumbnail view). I'd like to be able to change the way the ...
0
votes
2answers
179 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
1answer
353 views

How can I get url from image tag in feed with fetch_feed?

I used this piece of code in functions.php to add featured image in <image> tag in feed add_action('rss2_item', 'add_my_rss_node'); function add_my_rss_node() { global $post; ...
-1
votes
0answers
37 views

How to Get Amazon S3 URL Right Away to Display Image in Listing, not Post [closed]

With Amazon S3 plugin I can display images in posts because they use attachments. I cannot display images in listings because images are stored in post meta fields. Does anyone know if the Amazon ...
0
votes
1answer
2k views

Some images not found 404 in localhost

I just transferred a WordPress installation from the domain to my localhost. I did all the usual steps: copy files, export DB and replace domain.com with localhost, update wp-config.php and refresh ...
1
vote
1answer
400 views

All links to images are broken in a subdomain multi site environment

I've just installed a fresh copy of Wordpress 3.8.1, and then enabled the network feature using sub-domains. In cPanel, I have the wildcard sub-domain pointing to the Wordpress folder, and Wordpress ...
1
vote
1answer
99 views

Adding Attachment Display Settings in custom media frame

I made my own custom media frame : $('.add').bind('click', function(event) { event.preventDefault(); // Create the media frame. file_frame = wp.media.frames.file_frame = wp.media({ ...
0
votes
1answer
12 views

In a shared site, how to get products in a category from one site to another?

Our wordpress site(s) is actually 2 in 1. That is, while they are separate host URLs on the same domain, same server, they run from the same set of wp code, but different databases. They are not ...
0
votes
1answer
346 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
1answer
15 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 ...
5
votes
1answer
1k views

Add custom Attachment Display Setting for images

I've been doing a lot of research and I've yet to work this out. Can you add in a custom option in the Attachment Display Settings (part of Insert Media dialog in post editor)? What I'm after is the ...
0
votes
2answers
1k views

Get image post ID in media upload

I am developing a plugin that adds a Custom Post Type to my theme. It's a retail directory and the post type is a retail listing. Everything is working fine. I can upload content to the DB and then ...
0
votes
0answers
8 views

displaying page attachment image in custom widget

So I have this custom widget where you can select a page from a dropbox and the widget will lead you to this page. The problem is i have no idea how to display the page's attachment image. ...
0
votes
1answer
369 views

How to Make Thumbnail of Post Stay Animated

When I upload my post with an animated .gif, the thumbnail generates into a new image and doesn't stay animated. It will stay animated inside the post which is great. It seems to resize the .gif image ...
2
votes
3answers
997 views

How to copy and paste a picture found on the web to wordpress easily

Anyone knows how to do so? What about if you want to edit the pics a little bit before pasting. I am using windows.
7
votes
5answers
332 views

Generate Thumbnails only for Featured Images

I would like to know if there is a simple way (custom code or plugin) to create thumbnail sizes only for images that I intend to use as featured images (index.php, archive.php, etc.) , but not for the ...
1
vote
1answer
442 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.
0
votes
1answer
353 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
509 views

Local install not loading template images but is loading everything else XAMPP

I'm trying to create a local version on XAMPP of my company's WordPress website. All well and good except for the theme images aren't loading. (CMS images are loading) Looking at the image paths, I ...