Alex Barber | Digital Artist

time to push the pixels

WordPress remove first image from post

$filterImg = preg_replace(‘~]*\ />~’,”,$post->post_content,1);

$filterImg = apply_filters(‘the_content’, $filterImg);

echo $filterImg;

http://www.mattvarone.com/wordpress/images-post-wordpress-regular-expressions/

Next Post

Previous Post

© 2024 Alex Barber | Digital Artist