title: How to extract a Custom Post types content from WordPress
body: <p>I am using a WordPress plugin called Types and for the life of me, I cannot figure out how to extract the content of these Custom Types in WordPress?</p>
  
  <p>I've done this before for regular Posts but I am not sure what I am doing wrong for Custom Post Types?</p>
  
  <p>Here's the last block of code I've tried from the WP Codex:</p>
  
  <pre><code>       &lt;?php
            $query = new WP_Query( 'name=footer-address-details' );
              if ( $query-&gt;have_posts() ) {
              while ( $query-&gt;have_posts() ) {
              $query-&gt;the_post();
              echo get_the_content();
            }
            } else {
            // no posts found
            }
            /* Restore original Post Data */
            wp_reset_postdata();
          ?&gt;
  </code></pre>
  
  <p>I need to extract only this piece of data by slug-name (footer-address-details) from the DB.</p>
  
  <p>Is there something I am missing here?</p>
  
  <p>Thank you!</p>