I want to remove the images, regular text, and block quotes from my WordPress posts so I can place them in different areas on my single.php.
I currently have code which pulls out the images
<?php
preg_match_all('/(<img [^>]*>)/', get_the_content(), $images);
for( $i=0; isset($images[1]) && $i < count($images[1]); $i++ ) {
echo $images[1][$i];
}
?>
and will put only the images there. I need to have similar code which pulls out the block quote(s) and only puts that, and one for regular < p > text.
Or if there is an easier way to do such a thing.