Tagged Questions
1
vote
1answer
39 views
media resize/crop possibilities?
Under admin panel -> media settings
there are no minimal width option for thumb or other image modes
ex: I would like to crop image widthout distortion ->
height 124px and minimum-width 124px and ...
-1
votes
1answer
38 views
Image width issue in IE [closed]
For some reason images are being displayed as a thin line in IE 8 and earlier and i cannot work out why this could be. I'm using CSS to re-size the images for the homepage, the reason for me using CSS ...
0
votes
2answers
67 views
Featured Image keeps cropping
I've spent hours trying to figure this out and its driving me mad. I'm not great with php code so I'm not sure if I'm doing this the best way anyway...
It should be simple - I have built a custom ...
0
votes
1answer
98 views
Adding a 'style=' bit to image_send_to_editor output
The best thing I liked about the new v3.5 media manager was being able to insert images to a post hosted by an external site like photobucket using "Insert from URL". I normally format my image ...
2
votes
1answer
39 views
Actions according to image type and size
I want to do some actions according to image type and size, but the script I'm using is kind of heavy and is skyrocketing my wait time (first byte) from 5 to even 40 seconds (usually it's bellow a ...
0
votes
1answer
64 views
Conditional function for excluding first image from content, not working
I have the following function:
function remove_images( $content ) {
if( ( is_category() || is_archive() || is_home() ) && has_term( 'MyCat', 'category', $postID ) ) {
$postOutput ...
-1
votes
1answer
114 views
Convert all uploaded PNG files to PNG-8 format
Running a high trafficed platform. In my quest to minimise bandwidth costs, I added a high JPEG compression on all JPEG uploads (check solution in my previous question). However, Wordpress does not ...
1
vote
1answer
179 views
Add custom image sizes to media uploader
I want to add custom image sizes to the media uploader:
In order to do this, I use the following code (comments are there for convenience):
// this function adds the custom image sizes to the ...
3
votes
1answer
341 views
Set JPEG compression for specific custom image sizes
I use various custom image sizes (by add_image_size) and I have set my JPEG compression to 30% with this filter:
function jpeg_quality_callback($arg) {
return (int)30;
}
add_filter('jpeg_quality', ...
2
votes
2answers
217 views
Removing default image size list in Media Box
I trying to remove unused image size (Thumbnail, Medium, Large) in MediaBox
Any function can i use in functions.php ? or some trick ?
PS : I know i can use jQuery trick but any better function to ...
0
votes
1answer
94 views
Saving/Writing/Adding file to upload folder
Within a plugin I am generating an image, I would like to save this image to the upload folder and update the WPDB with the location of said file. I cant find any build in wordpress functions to ...
0
votes
2answers
130 views
Wordpress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
I wonder if Wordpress is the best CMS or solution for what I wannt to do?
I need to find some way to upload images to a post that I can loop as background images. Just like I can upload multiple ...
2
votes
2answers
531 views
How to register images uploaded via FTP in media library?
I'm using my own upload.php file to upload images to:
$upload_dir = wp_upload_dir();
$targetDir = $upload_dir['path'].'/';
It works like it should with this exception that images uploaded to ...
0
votes
1answer
56 views
Allow authors to create article image
I want to allow contributors to upload images while creating posts. But the catch is, I am building the post display pages out of my own custom PHP.
Every article written will follow the same ...
0
votes
2answers
160 views
get_image_tag() html output : empty src attribute
I'm trying to use the get_image_tag() function to alter the html output of an image, like so :
add_filter('get_image_tag', 'kh_image_attachment', 10, 5);
function kh_image_attachment($html, $id, ...
0
votes
1answer
446 views
How to make excerpt image be full size instead of thumbnail?
Now when I have excerpts on the home page the image is a small square, but I'd like to change it to a fill the entire width of the content area. (as if the image was in a post.) My theme is responsive ...
-5
votes
1answer
117 views
MIssing feature image link function
I need to be able to add a feature image to a post as a link. The link is good, it's green check. And no i cannot upload the file and insert into post dont do anything good. I have the link to the ...
0
votes
2answers
181 views
How to only publish posts with image in it
I use a standard loop in my index.php and that shows all the posts beeing posted. What i'm looking for is a code that only shows the posts that have image(s) in it.
With other words: i only want to ...
0
votes
1answer
358 views
How to hide image-url if no attachment?
How can I hide the img-tag if there is no attacment?
(function is from this tutorial: http://wp.tutsplus.com/tutorials/automagic-post-thumbnails-image-management/)
<img src="<?php ...
1
vote
2answers
221 views
Converting a simple plugin to be placed inside of functions.php
First off, I know it's better practice to use plugins separately than to integrate them in functions.php but this is for a theme framework that will be deployed to multiple sites and it will be easier ...
0
votes
2answers
2k views
How to replace p with div tag using preg_replace()? [closed]
I have this code in my webpage...
<p style="text-align: center;">
<a href="http://***.com/wp-content/uploads/2012/01/18169921.jpg">
<img ...
1
vote
1answer
66 views
Publish/Update post is changing image links from file url to post url
I've written a filter to wrap images included in posts with figure tags and their captions with figcaption tags. I turned off the visual editor so that it doesn't strip out all the html from the ...
3
votes
1answer
2k views
remove links from images using functions.php
I am looking for a way to remove the attachment link from images in the post content.
I would like to add this to the functions.php in my theme. I know you can disable this in the post on a per ...
1
vote
1answer
90 views
Featured Image Thumbnail Creation
What function or script creates the hard-cropped feature image when a post is saved? Regardless if I stipulate a size when saving the featured image in the media library (like the medium size), a new ...
2
votes
2answers
434 views
Best way to programatically add “rel” attributes to page and post images
For single posts and pages, I would like to add certain rel attributes to all the images on the contained therein added with the "Add Image" functionality on the edit screen.
The attribute would be ...
0
votes
2answers
319 views
Need To Resize Images Exactly Without Losing Image Details
I am working on a Wordpress site that heavily uses image uploading and whatnot, I have defined the image sizes in my functions.php and I have hard crop mode turned on which ensures that my images are ...
1
vote
2answers
510 views
Twentyten Child Theme: header images display messed up in admin panel
WordPress v 3.0.4 multisite-network enabled, local installation w MAMP 1.9.4, PHP 5.3.2, Theme: Twentyten child
TWO PROBLEMS: 1) Display of header image thumbnails in admin panel and 2) path to ...
0
votes
2answers
344 views
fetch images and videos
Is it possible to fetch videos and images of a particular website and put it into post?
i mean i am thinking of writing a function, where i will just write the website name, and then with the help of ...
