title: Wordpress - targeting images in content
body: <p>I have the following code in my wordpress theme, single-post page (the page where single posts are displayed). </p>
  
  <pre><code>&lt;article id="post-&lt;?php the_ID(); ?&gt;"&lt;?php post_class('col-md-12'); ?&gt;&gt;
  &lt;div class="container"&gt;
  
      &lt;header class="entry-header"&gt;
          &lt;h1 class="entry-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
      &lt;/header&gt;
  
      &lt;?php
          $thumb = get_post_thumbnail_id();
          $img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big)
          $image = aq_resize( $img_url, 1200, 720, true ); //resize &amp; crop the image
      ?&gt;
  
      &lt;?php if($image) : ?&gt;
      &lt;img class="img-responsive singlepic" src="&lt;?php echo $image ?&gt;"/&gt;
      &lt;?php endif; ?&gt; 
  
      &lt;?php if ( $post-&gt;post_type == 'data-design' &amp;&amp; $post-&gt;post_status == 'publish' ) {
  
  if ( $attachments ) {
      foreach ( $attachments as $attachment ) {
          $class = "post-attachment mime-" . sanitize_title( $attachment-&gt;post_mime_type );
          $thumbimg = wp_get_attachment_link( $attachment-&gt;ID, 'thumbnail-size', true );
          echo '&lt;li class="' . $class . ' data-design-thumbnail"&gt;' . $thumbimg . '&lt;/li&gt;'; 
      }
  }  
  }
  ?&gt;
  
  &lt;div class="entry-content"&gt;
  
      &lt;?php the_content(); ?&gt;
  
      &lt;?php
          wp_link_pages( array(
              'before' =&gt; '&lt;div class="page-links"&gt;' . __( 'Pages:', 'web2feel' ),
              'after'  =&gt; '&lt;/div&gt;',
          ) );
      ?&gt;
  &lt;/div&gt;&lt;!-- .entry-content --&gt;
  
  &lt;/div&gt;
  &lt;/article&gt;&lt;!-- #post-## --&gt;
  </code></pre>
  
  <p>It puts the post-title then featured-image as a large image then posts the content, and then the rest.</p>
  
  <p>I want to target the images in the content, and display them the same way as the featured-image is displayed.</p>
  
  <p>*NOTE - changes to the 'if ( $attachments ) { ...' function doesn't change anything (nor does completely removing it) so I am not certain what that part does. the only code that affects the content is when it is called ( '')</p>