title: How to display Custom Post Type for specific post IDs
body: <p>I'm new to wordpress and am working on a custom post type called RankThem. Members rank by numbers (through gravity form submission) their top 5 editorials each week. I want to display the members profile picture, name and their submitted ranking number specific to the post ID, each editorial will have it's on post ID. I've been working to write a function for each data-output but have not been successful. Any help would be much appreciated.</p>
  
  <pre><code>function get_rankthem_post_types()
  {
      $args = array(
          'posts_per_page' =&gt; -1,
          'post_type'=&gt;'rankthem'
      );
      $_PostID = get_posts($args);
  
      /*string to return*/
      $content = '';
  
      foreach($_PostID as $key=&gt;$val)
      {
          $content .= '&lt;strong&gt;'.$val-&gt;user_id.'&lt;/strong&gt;&lt;br /&gt;'; 
          $content .= $val-&gt;user_avatar.'&lt;hr /&gt;'; 
          $content .= $val-&gt;post_content.'&lt;hr /&gt;';
      }
  
      return $content;
  }
  </code></pre>