How to add a credit line to a photo caption

I tried to do this once and almost got almost. Here’s what I did learn. Depending on your needs, this solution may be workable. You can append content to media when it’s inserted into the editor using the get_image_tag filter: /** * Filter to get caption and append image information to it. * * @return … Read more

Retrieving Image Storage path

Images (and all other attachments) are associated with a post in the posts table. The attachment source URL is saved in the guid column. That’s not a good choice, because sooner or later GUIDs won’t follow the URL scheme anymore, so don’t query that field directly.

Images not rendering

Based on the link you posted as a comment to your original question this looks like a permissions issue which could be the result of several things. Along with the domain change did you change servers too? First step I think would be ensuring that all of the uploads are readable. chmod all files and … Read more

Retaining original image size

Paste this code in the style.css file of you current active theme. (file path: /wp-content/themes/genesis-sample/style.css ) .entry-content img.size-full { max-width: none !important; }

Black and White Thumbnail in WordPress Gallery

I think the best way to do this would be to add a filter to when the content is pulled into the post/page: <?php add_filter( ‘the_content’, ‘add_bw_thumbnails’ ) ?> Or to when an image is inserted into the editor: add_filter( ‘post_thumbnail_html’, ‘add_bw_thumbnails’, 10 ); add_filter( ‘image_send_to_editor’, ‘add_bw_thumbnails’, 10 ); You then just have to write … Read more