Articles of images

Any way to “combine” galleries or show multiple galleries as one?

So let’s say I run a TV show blog. One day, the show releases to the public a set of 10 screencaps from an upcoming episode. I post that on my blog, either as a post with multiple images, or specifically as a “gallery” post — either way, readers can view all the image attached […]

help getting featured image using get_posts

I am using a homepage sorter to arrange the posts on the front page of my site because of that, I am getting the posts in this manner so that I can call each post individually instead of in a foreach loop $args = array( ‘numberposts’ => -1,’category_name’ => ‘homepage’); $home_post = get_posts( $args ); […]

Show Post Excerpt in Image Attachement

I want to show excerpt from the post in the below image attachment, here’s my code <?php /** * Image Template * * Displays singular WordPress Media Library items. * * @package Thematic * @subpackage Templates * * @link http://codex.wordpress.org/Using_Image_and_File_Attachments Codex:Using Attachments */ // calling the header.php get_header(); // action hook for placing content above […]

Change image size when inserting Media?

When you insert media with the media upload, it will generate images of several sizes according to the media settings. But sometimes I only need thumbnails. Other times I only need medium images. If each post has images that aren’t being used, it waste space. Is it possible to select custom image size to be […]

Correct Way To Show Custom Taxonomy for Image Attachments on Template File

I’ve created a custom taxonomy called imagetags using the following code: // Register Custom Taxonomy function custom_imagetags_taxonomy() { $labels = array( ‘name’ => _x( ‘Image Tags’, ‘Taxonomy General Name’, ‘text_domain’ ), ‘singular_name’ => _x( ‘Image Tag’, ‘Taxonomy Singular Name’, ‘text_domain’ ), ‘menu_name’ => __( ‘Image Tags’, ‘text_domain’ ), ‘all_items’ => __( ‘All Image Tags’, ‘text_domain’ […]

When inserting images into posts auto add a wrapping div

When I add images to a post via the TinyMCE editor I’d like WP to add a wrapping div around the <img> tag like <div class=”img-wrapper”><img src=”url-to-image” alt=”image” /></div>. Is that somehow possible?

Adding a querystring to an image URL when clicking 'insert into post'?

I have written a plugin which does some fancy stuff with GD lib when you upload an image. Everything is working fine, however I need to get the image title and add it to the image URL (and file name of the image) when the user clicks ‘insert into post’, but can’t find any references […]

Images not showing after moving site (but path id OK)

I moved (actually copied) a WordPress site (http://inglesen100dias.com/) to a new server and domain (http://blog.inglesen100dias.com/). I followed the process described on WordPress’ website and also used a search and replace script as recommended there to fix the path of the images, so they use the new URL of the site. Everything seems fine except the […]

How to add qtranslate multi language support for media?

The multi language plugin qtranslate works for custom post types but there is no capability to translate media information like title, description, captions for images. I am using the following code (WP v3.7.1) in order to adding support for custom taxonomies translation: add_action(‘admin_init’, ‘qtranslate_edit_taxonomies’); function qtranslate_edit_taxonomies(){ $args=array( ‘public’ => true , ‘_builtin’ => false ); […]

How to include a picture in a blog post such that it will show in Facebook?

Worpress Blog: 3.9 Theme: Twenty Eleven ( as a child theme ) Blog: http://beforewisdom.com I am using a wordpress.org blog. It used to be that if I put an image or video at the top of my blog posts that image would appear on Facebook if I posted a URL of that blog post. No […]