image URL changed in wordpress

Using WordPress plugin – Search And Replace This is simple WordPress plugin, Does database query to replace any content. This plugin can be used to replace a string ( say – localhost:8888 ) with a new one ( domain.com ) . Direct updating MySQL Database – Or, If you’ve access to MySQL Server you can … Read more

How to change image’s author via a function when using GravityForms uploader? [closed]

add_action(“gform_user_registered”, “image_author”, 10, 4); function image_author($user_id, $config, $entry, $user_pass) { $post_id = $entry[“post_id”]; $args = array( ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’ ); $attachments = get_posts($args); if($attachments) : foreach ($attachments as $attachment) : setup_postdata($attachment); $the_post = array(); $the_post[‘ID’] = $attachment->ID; $the_post[‘post_author’] = $user_id; wp_update_post( $the_post ); endforeach; endif; }

How to automatically populate a gallery with images attached to posts of one category?

In form of a shortcode to render a default WordPress shortcode including all attachments of the given categories: /** * Usage: [catgallery cat=”4,5″] * Attribute: array of category IDs */ add_shortcode(‘catgallery’, ‘wpse_70989_cat_gallery_shortcode’); function wpse_70989_cat_gallery_shortcode($atts) { // $return = ”; // DEBUG: enable for debugging $arr = array(); $cat_in = explode( ‘,’, $atts[‘cat’] ); $catposts = … Read more

Specific Days, Specific image on Front Page

Unless i missunderstood you, This should be easy to do without using a plugin… Embed this in your functions.php: function echoDayImage() { // GET CURRENT DAY $currentDay = get_the_time(‘l’); // CHECK DAY AND ECHO SUITABLE IMAGE if($currentDay = ‘Sunday’) {echo TEMPLATEPATH.’/images/Sunday.jpg’;} elseif($currentDay = ‘Monday’) {echo TEMPLATEPATH.’/images/Monday.jpg’;} elseif($currentDay = ‘Tuesday’) {echo TEMPLATEPATH.’/images/Tuesday.jpg’;} elseif($currentDay = ‘Wednesday’) {echo … Read more

Cache issues with images not showing up

If I visit your first link and look at the response, I get a 500 Internal Server Error when trying to get the following resource: http://designportugal.net/wp-content/themes/dt-nimble/timthumb.php?src=/wp-content/uploads/2012/11/drpedrocoelho.png&zc=1&w=30&h=30 so my guess is that your problem is with the timthumb plugin. Try disabling the plugin and see if your error goes away.

How to change picture size

You need to change the size in settings to the new one. Then you have to regenerate the images to that new size because when you change the size within WordPress they are still saved as the previous size. For that you can use a plugin like : Regenerate Thumbnails After you have run the … Read more

Image “description” and SEO within WP

The alt tag is the description for an image… This tags exists since google cant “read” the image. That is why we describe the image for googe / bing / etc… the alt tag should no be longer then 3-5 words max (3 is better). The title tag is not a must unless you wish … Read more