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
1answer
66 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
0answers
106 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
61 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 ...
1
vote
0answers
84 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
133 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
1answer
42 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 ...
0
votes
0answers
20 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
30 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
28 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
113 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
27 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 ...
3
votes
3answers
149 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 ...
0
votes
1answer
49 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
39 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
60 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
27 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
192 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 ...
1
vote
0answers
51 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 ...
2
votes
0answers
133 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 ...
0
votes
0answers
146 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 ...
2
votes
1answer
469 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
0answers
44 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
54 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 ...
0
votes
2answers
79 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 ...
2
votes
1answer
90 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 ...
0
votes
2answers
124 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 ...
0
votes
0answers
33 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 ...
1
vote
1answer
314 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
186 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
31 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
67 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. ...
-1
votes
1answer
204 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 ...
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. ...
0
votes
1answer
114 views

How to display title of attached image in post?

First of all, I apologize for my English, because my English isn't good. How to display title of attached image between < h3 > tags in the post? There's that code in wp-includes/media.php file; ...
0
votes
0answers
39 views

Upload from front end custom feature image

Hello guys I have a question. Is there a way to upload from front end a custom feature image. I already know how to upload feature image, but I want to upload another image from front end, so that I ...
0
votes
0answers
148 views

full screen image/video on front page, then scroll down for menu and site content

I am having trouble locating a plugin or finding out how to create only for the home page, a feature that will have a full screen image or autoplaying video, but when the user scrolls down the rest of ...
0
votes
0answers
120 views

Show prev and next post links for parent post of current image in attachment page?

I use this code to show previous and next posts (in same category) on post pages (single.php). <?php $next_post = get_next_post(TRUE); // TRUE = in same category if (!empty( $next_post )): ?> ...
-1
votes
1answer
231 views

How To Display Author Photo In WordPress without any plugin?

How To Display Author Photo In WordPress without any plugin? I know there are many plugins in wordpress that give me solution. But I don't want to use any plugin. Is there any way to add image for a ...
1
vote
1answer
110 views

wp_customize_image_control deprecated add_tab alternative

I have been using add_tab to add a tab in Customizer with default images. It is deprecated and no longer works in WordPress 4.1. How can I create/find an alternative? add_action( ...
0
votes
2answers
140 views

Use Exact Image Size using add_image_size

I have a pretty basic question. It may be very noob question, but it is bothering me a lot. In my theme I've added a custom image size like this: function img_update() { if ( function_exists( ...
0
votes
1answer
95 views

Custom image size in Media Dropdown

I've tried everything you have said, but it's not working on my site. I'm using the below function: function setup_image_sizes() { if ( function_exists( 'add_image_size' ) ) { ...
0
votes
0answers
164 views

Changing attachment url?

How to change default attachment url: www.domain.com/category-name/subcategory-name/some-post-title-here/attachment/some-post-title to: ...
0
votes
1answer
119 views

Show Wordpress Image Title Under Custom Portfolio Image

I got this custom portfolio php file here: http://pastebin.com/B4ZgdQZT or you can see it below at the end of the question... The problem is that I can't manage to show the image title. I tried ...
0
votes
1answer
243 views

Display custom gallery in each wordpress post

In my website there is post thumbnail slider. Post thumbnail slider will show images related with blog post. I want when we write any post then it will allow me to upload few images via media uploader ...
-1
votes
1answer
756 views

Media upload error

I'm new in WP development. Suddenly I face upload error while media uploading. Even I also deactivated all plugins. Now I'm using WP latest version (4.1). After error msg the image is uploaded ...
0
votes
1answer
86 views

Specify automatically the height and weight of the images

I just did a GTmetrix test for my website to check how it's going, and I noticed that I have many images without height & width size specified. So I start thinking about a Wordpress function that ...
0
votes
1answer
37 views

Problem in using Customizer

Looking for some help with a customizer problem. I am using following codes to create a customizer which will allow me to upload an image for topic of the week section. owever, the following codes ...
0
votes
2answers
104 views

Hide thumbnail if there is a gallery on the post

In a post I want to always show one of two options- If the post has nothing but a thumbnail image show the thumbnail. If the post has both the thumbnail and a gallery then show the only gallery ...
0
votes
1answer
83 views

Multiple post image, echo url (path of image)

Currently I'm trying to create a large header (jumbotron) on my website. The large header is loaded as inline css with the following code: <div class="fill" style="background-image:url('<?php ...