title: wordpress accessing custom fields from post
body: <p>I have looked everywhere and am not finding the answer I'm looking for.</p>
  
  <p>Basically I want to access information from a post and display it on my front page.</p>
  
  <p>I'm using a plugin called Advanced Custom Fields to organize my content for each post.</p>
  
  <p>I can retrieve the post title like this.</p>
  
  <pre><code>$post_id = 148;
  $queried_post = get_post($post_id);
  ?&gt;
  &lt;h2&gt;&lt;?php echo $queried_post-&gt;post_title; ?&gt;&lt;/h2&gt;
  &lt;?php echo $queried_post-&gt;field_4f2af94aa1371; ?&gt;
  </code></pre>
  
  <p>But I can not access the value of the custom fields. Can anyone help me?</p>