Articles of images

Find only those galleries with images

Is there a way in WordPress to use WP_Query and retrieve posts/galleries that have more than 0 metavalues with the key _gallery_image_ids? Essentially I don’t want to display galleries that have no images.

Where to insert the other site image url for our wordpress post

I am scrapping contents from my others sites into my wordpress site, i did all and below is my insert query $my_post = array( ‘post_title’ => $my_title, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_category’ => array(5), ‘post_content’ => $res_final, ‘post_date’ => date(‘Y-m-d H:i:s’), ‘post_date_gmt’ => date(‘Y-m-d H:i:s’), ‘post_type’ => ‘post’ ); $post_id = wp_insert_post( $my_post […]

Attaching images to posts manually (i.e. with custom code, without the use of an API)

I am working on mobile API for a WordPress site. The API is written in PHP and provides methods actions such as creation of a post. Now, I can create a post with one image (thumbnail) of the post. How can I create post with multiple images, what records in what WP tables must I […]

Hiding Media Source Links

I inserted an image onto my page from my WordPress media (Add Media -> Media Library -> Link To = None). However, when I right click on the page to view the source, I noticed the address to my media. How do I hide this address? I think its a security risk that the folder […]

How can I change the <img src> to <data-original> for lazyload wp smilies

I tried to improve my WordPress performance, and already put the content <img> with jQuery LazyLoad. Now, I got some problem in changing the smilies src, already set the theme smilies add Used: add_filter(‘smilies_src’,’light_smilies_src’,1,10); function light_smilies_src($img_src,$img,$siteurl) { return get_bloginfo(‘template_directory’).’/images/smilies/’.$img; } When I added… $img=”<img data-original=\”{$file}\” alt=\”{$smile}\” />”; it shows… <src=”data-original=”http://img.mywordpresstips.com/images/icon_mad.gif”.. How can I change it […]

WordPress Image Scaling Quality

How can I make sure that WordPress doesn’t lose too much quality on uploaded images that are scaled down? Here are some samples. You can clearly see that an image resized in Photoshop comes out with better quality than the same image resized within WordPress. Original screenshot at 700px width Photoshop resized at 600px WordPress […]

Category view with contents of s shown

SO: I have a bunch of Posts with s in them. They are in category “Galleries”. I want the category view to show (some||all) of the contents of the galleries in each post. Instead it seems to be stripping out or not rendering the gallery at all. Ideally I’d like to be able to control […]

Insert images into wordpress post with a query

I have a WordPress installation with 2.000 posts. Also in a separate table of my database I have a set of image paths and the filenames of the images, each image is assigned to each post of my WordPress installation based on the post id. eg of my images’ table id|image ——– 1 | img1.png […]

Getting taxonomy images to display on single-post with their terms

Having some trouble with taxonomy images plugin. I am on single-post.php and I want to display my post’s taxonomy terms & the term’s associated images. Ideally, I’d like the taxonomy description there too. No idea why this has me stumped because it seems like it should be a simple thing to do. I have this […]

Media Editor uppercase extensions to lowercase

What’s the reason for making the extensions on uploaded images lowercase as soon as the upload is complete?