remove anchor element around Wordpress images with filter (or jquery)

jitzzz

New Member
I have an anchor element like this:\[code\]<a href="http://stackoverflow.com/link-to-image/" rel="attachment wp-att-7076"><img src="http://stackoverflow.com/uploads/img.jpg" alt="" title="" width="1268" height="377" class="alignnone size-full wp-image-7076" /></a>\[/code\](It's the standard way of Wordpress to embed uploaded pictures in a post.)I want to remove the anchor around the image element, but keep the image. I simply want the image to show without being clickable.This could be done either with a filter for the content of a post in Wordpress or after the page is loaded with javascript. Filtering in Wordpress would be preferred. I have no idea how to do either of those two options.
 
Back
Top