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

Prevent the display of junk characters using wp_generate_attachment_metadata from front end

I am using a front end form for submitting posts and in the instance that the user does not attach an image, I am setting default images that already exist in the media library to attach at random to ...
0
votes
1answer
43 views

Why are featured images sometimes cropped, and sometimes not

I am developing a website using Wordpress CMS, in particular Hatch theme. I noticed that in some posts, featured image is displayed full size (like here) but in others, featured image has a smaller ...
0
votes
1answer
132 views

How to show category images (from plugin) on a regular page (page-example.php)?

I am trying to use the Category Images Plugin to show images with my Custom Taxonomy (Region) categories/terms. Here is the code I have so far in a page-example.php that lists all the categories/terms ...
0
votes
0answers
34 views

Wordpress showing images as a broken icon

Ok. So what i did is that I've Followed this http://www.itsupportguides.com/wordpress/wordpress-how-to-serve-static-content-from-a-cookieless-domain/ Click here! After using this trick the website is ...
0
votes
4answers
2k 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
0answers
41 views

Insert <!--nextpage--> after every x img tags in a post

I want to insert <!--nextpage--> after every 10 image tags in a wordpress post (if there are 30 images, I'll get 3 pages), but I can't seem to figure out how to do it. I found a php function that ...
0
votes
0answers
25 views

I want to use the GD image editor for just one function then switch back to ImageMagick

I have issues with ImageMagick generating images with transparency, they work but when I have wordpress resize them they come out a little distorted. I asked a question about this many moons ago in ...
0
votes
1answer
33 views

Screenshots on plugin page taken old [closed]

In readme before latest release they where named as: BlaBlaBla BlaBlaBla Files also named in same pattern: screenshot-01.png, screenshot-02.png After latest release only ...
3
votes
3answers
126 views

Can WordPress crop only the post thumbnails?

I'm using the post thumbnails feature of WordPress and I have several sizes defined in functions.php. Everything's fine, it works great with Crop Thumbnail to crop them perfectly. I have a question ...
1
vote
0answers
75 views

Wordpress 4.1 header image problem

I want to use a moving .gif as my header image in wordpress 4.1. In previous versions I could skip the cropping step and leave the image as is, and it would let me pick a moving gif as my header ...
1
vote
0answers
84 views

Crop image to horizontal or vertical by code based on image size

my client asked me to create gallery(WP gallery) based on this site. the problem here is that i need to crop images based on image size before inserting the image in the Media library. now i using ...
0
votes
2answers
705 views

add_image_size() to crop images into squares?

So I know about setting custom images with add_image_size('name',X,Y,Crop?) which is cool but I need to build something that will crop images, regardless of their size, into squares. Basically, I ...
0
votes
1answer
287 views

Upload unnattached image from frontend

I am using the below function to let users upload files from the front end. It works great except that I would like the file to NOT be attached to any post. Currently, the file is automatically ...
0
votes
0answers
19 views

Wordpress Blog Author picture by image URL

I want to use image url for wordpress blog author picture. By default it will allow me to browse and select image from my local system. It will be helpful if it can be implemented without any ...
0
votes
1answer
23 views

How does wordpress name resized image copies?

I've noticed that usually, Wordpress will name a scaled image copy by appending the resolution, like this: image1-200x200.jpg Is this always the case? Are there any special circumstances where they ...
0
votes
0answers
22 views

Images showing up as broken

I'm running multisite on my WordPress and the main site is showing images fine, but the other 2 are showing as broken. My file permissions for upload is the standard 755 and have also tried 744 with ...
0
votes
0answers
72 views

Conditionally Use image_resize_dimensions()

I used add_image_size() and image_resize_dimensions() to upscale and crop images in WordPress. It is working as expected except on the Edit Media page. Generally on this page you would see your full ...
0
votes
1answer
19 views

Assigning image to Post-Type won't work anymore: exceeded time?

weird, but for some reason i get suddenly the following error in my Wordpress backend when assigning an image from the "media-gallery" to a post-type. Fatal error: Maximum execution time of 80 ...
0
votes
1answer
22 views

Images are not shown

I can see my images in media/libary but not in posts. The issue seems to be that the REAL url to the image ends with image.jpg (if I go to this url I can see the image). But in the post I get the ...
0
votes
1answer
740 views

How to pass on a value as parameter via url to another page

I'm dealing with a problem I can't solve myself. I did a few hours of research about it, but I didn't manage to make it work. I want to send a parameter via the url to the page I'm forwarding to and ...
3
votes
1answer
186 views

Display (and manage) webcam images?

I have a webcam that write every minutes or so, an image to an ftp folder on the server where WP is installed. My question is how to get the last image displayed on page, with refresh every 60 second, ...
1
vote
1answer
1k views

How to remove p tags around img and iframe tags in the acf wysiwyg field

I am querying an advanced custom fields wysiwyg field. Problem is in the output wordpress wraps occasional imgs and iframes with p tags no matter what i try. Deactivate the wpautop works remove_filter ...
1
vote
0answers
40 views

force feed readers to pick atom version

The reason i want to do this is Feed versions of my Front-page (rss and atom) are different! that's right. i have placed a function code to put preview images in feed but looks like it only effect on ...
0
votes
2answers
62 views

Getting thumbnail of uploaded image

I want to get a 'smaller' thumbnail of a large image I have uploaded through the built in word-press media up-loader. I have briefly looked at get_the_post_thumbnail but I don't think that is the ...
0
votes
1answer
34 views

Extract image url associated to a category

I found a function that allows me to attach a category to an image in media uploader function add_categories_to_attachments() { register_taxonomy_for_object_type( 'category', 'attachment' ); ...
0
votes
0answers
22 views

My images link are sometimes WRONG, why?

I'm having a strange issue at work with a wordpress I only partialy created. So my work needed a wordpress very very fast, directly online, even without any kind of article or page (yeah ... I know, ...
0
votes
0answers
41 views

How to set OG Image as featured image for custom post type?

I have a custom post type named "Episode" I want to set the featured image as the og image so facebook can detect the correct image. I only want the og data to only appear on that specific custom post ...
0
votes
0answers
19 views

Prevent multiple attachment with the same image

The plugin is designed to grab the user images from Instagram and insert them into media library, everything works fine on this part. I have set a transient with user selected refresh rate to check ...
0
votes
1answer
77 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 ...
0
votes
2answers
77 views

has_post_thumbnail() Returns False on Scheduled Posts

I am making some changes to a custom WP template and have hit an odd issue. Published posts work absolutely fine, but when you view a scheduled post the Featured Image disappears. It's as if there ...
1
vote
0answers
69 views

How to have different captions for same image, for galleries?

Seems like I can't have the same image in different galleries with different captions. Is it possible to make that working in any way? Like if we could change the shortcut code that Wordpress is ...
1
vote
3answers
10k views

Remove title attribute from images

I'm looking for a way to remove the title attribute from images, preferably through using a hook or a filter. Most clients don't bother giving images a proper title, thus eliminating the purpose of ...
0
votes
0answers
99 views

Images On The Server But Not Showing Up in WordPress Multisite Media Gallery

I've had several different WordPress installations in the past. I've moved all of them into a single WordPress multisite install. Previously, there was one main site installed on example.org and then ...
9
votes
1answer
1k views

Is it possible set a featured image with external image URL

I know there are plugins that fetch images from remote URL and store locally. I just want to know whether it is possible not to store image in Media Library yet use it as Featured Image?
2
votes
1answer
143 views

Always use <figure> for post images

The default behavior when it comes to full-width images in posts is this: If you insert an image alone, this HTML structure is produced: <p><img/></p> If you insert an image with a ...
0
votes
2answers
60 views

Setting featured image based on related post

I am using a plugin called The Events Calendar. I don't always set the featured image for each individual event. Each event has an organizer ID (tribe_get_organizer_id). I want to add a filter that ...
0
votes
4answers
4k 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 ...
2
votes
2answers
935 views

Permanently remove first image from posts

I have around 2,500+ posts on my site where I've inserted images using the traditional method into the post content itself. In upgrading to a different theme, the single post page now displays the ...
0
votes
0answers
35 views

Image URL clashing with Page URL

I have been using the same structure on this site for a long time and it has never been a problem, so I'm not sure why it has become a problem now: If I have a page URL www.example.com/sedan-cars/ I ...
0
votes
1answer
36 views

My feature images are showing up twice on the preview page

I own the lowly knitting blog www.oftengrumpy.com. I am having a problem with my feature photos showing up twice on the preview page that shows snippets of my posts (not the individual post pages ...
2
votes
1answer
56 views

Uploading images: 'ø' get replaced with 'ø'

So, I have 2 sites. One in production, and the another in development. They have the same content and uploads. In production, images with names containing æ, ø, or å gets the character replaced with ...
9
votes
1answer
6k views

Adding Category/Tag/Taxonomy Support to Images/Media

I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with: add_action('init', ...
0
votes
0answers
19 views

Batch Rename Images

I know how to do this during upload, but what about after the fact. Is there an easier way then what I'm doing to rename images? I'm using php rename function for the image itself, but what about ...
0
votes
1answer
120 views

Remove the http protocol from images

I've been banging my head on the wall trying to filter my posts to remove the http: protocol from the img src and I think I may have found a solution. Does anybody see anything wrong with this ...
0
votes
1answer
108 views

How to add Wordpress featured image via SQL

I have thousands of custom post types called "listings" without images. Now I want to add an image to each of these listings as a placeholder image and these images should be also set as featured ...
0
votes
0answers
20 views

Setup lazyload on post images using get_image_tag

According to jQuery.lazyload any images I'd like to "lazyload" need to have the src attribute replaced with data-original. I'm assuming I can do this using WP's get_image_tag filter, but I'm stuck on ...
0
votes
0answers
47 views

export high ress images to pdf

I want to export a webpage to PDF. I'm using the wp-mpdf plugin which is based upon mpdf. The problem that I'm having is that I want to be able to export a high ress image if that is on the page. ...
0
votes
0answers
15 views

What is the Best way to post each pictures uploaded separately and automatically?

I have a lot of pictures which I should upload them to my website everyday (about 100 pictures per day). These pictures are uploaded to the website with a Title and a specified little Description. ...
-1
votes
1answer
120 views

How to get attached image alt text in media.php?

First of all, i apologize for my English. I want to get attached image alt text following code in wp-includes/media.php function img_caption_shortcode( $attr, $content = null ) { // New-style ...
4
votes
3answers
829 views

How might I retrieve a featured post image from an external WP site and display it as a link back?

I have two WP sites. I want to reach from one of them, into the other, and retrieve specific featured images for posts, and display them with a link to that post. I am using this line (with the ...