Using mysql to replace img src?

This feels like it is too link-heavy for an answer, but oh well. You can either use the Velvet Blues Update URLs plugin or the Serialized Search and Replace script. Either will allow you to search for a string in the database and change it to something else. The former lets you do it from … Read more

Is wordpress compressing my images? if so, how to prevent it?

A nice explanation is at WPMUdev: http://premium.wpmudev.org/blog/how-to-change-jpeg-compression-in-wordpress/ According to their tutorial, you’d need to add the following to your functions.php add_filter( ‘jpeg_quality’, create_function( ”, ‘return 100;’ ) ); They also suggest regenerating your thumbnails once the change is made so previously uploaded images will be affected by the quality change.

Apply nextgen-gallery lightbox effect [closed]

I’m not familiar with exactly how nextgen-gallery does it, but typically for lightbox effects you need to add rel=”lightbox” to the image tag for it to work. To do that you’d do something like this: $attr = array( ‘rel’ => “lightbox”, true) )), ); echo wp_get_attachment_image( get_post_meta( get_the_ID(), ‘afp_analysis_chart’ , true), ‘large’, 0, $attr );