title: Exclude Images in Post from attachment images
body: <p>I'm using a simple jQuery image slideshow in the single.php, that is calling all the image attachments to my post.  But I want to exclude the images posted within the actual post, but keep all the images actually attached to the post.  </p>
  
  <p>I'm using this bit of code to grab all the image attachments, but, unfortunately, it's also grabbing all the images within the post content, which is not necessary:</p>
  
  <pre><code>&lt;?php
  $attachs = get_posts(array(
      'numberposts' =&gt; -1,
      'post_type' =&gt; 'attachment',
      'post_parent' =&gt; get_the_ID(),
      'post_mime_type' =&gt; 'image', // get attached images only
      'output' =&gt; ARRAY_A
  ));
  
  if (!empty($attachs)) {
      foreach ($attachs as $att) {
          // get image's source based on size, 
          // can be 'thumbnail', 'medium', 'large', 'full' 
          // or registed post thumbnails sizes
          $src = wp_get_attachment_image_src($att-&gt;ID, 'full');
          $src = $src[0];
  
          // show image
          echo "&lt;div style='margin: 0 10px 10px 0; float: left'&gt;&lt;img src='$src' /&gt;&lt;/div&gt;";
      }
  }
  ?&gt;
  </code></pre>
  
  <p>Any recommendations?  </p>