## How to extract images of post and pages excluding header and logo image in wordpress?

Question

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ,etc …

In short i want to extract all images attached to posts and pages ..

if(is_single() || is_page() || is_home() ){
global $post;$query_images_args = array(
'post_type' => 'attachment', 'post_mime_type' =>'image', 'post_status' => 'inherit', 'posts_per_page' => -1,'numberposts' => 1
);

$query_images = new WP_Query($query_images_args );
$images = array(); foreach ($query_images->posts as $image) {$images[]= wp_get_attachment_url( $image->ID ); } echo "<pre>"; print_r($images);
echo "</pre>";


My output Here the first image is a header image which is unwanted for me ..How to exclude it ..I have tried using attachment size but it cant be unique all the time .. Have a look at it

Array
(