title: WordPress Custom Fields get post from page
body: <p>I'm working on a WordPress website and i have a little problem with the custom fields plugin. I'm familiar with plugin and worked with it few times before.</p>
  
  <p>I created a custom field for posts and a custom field for pages.
  When i try to get the page's custom field i get it with no problem.
  The page has global $post on top and i do get a different $post->ID
  for each post loaded.</p>
  
  <pre><code>$pageMonth = get_field('page-month');
  </code></pre>
  
  <p>But when i try to get the post's field i get nothing.. I also tried it through
  the post's loop with $post->ID</p>
  
  <pre><code>&lt;?php $postMonth = get_field('post-month', $post-&gt;ID); ?&gt;
  </code></pre>
  
  <p>I checked myself few times, the custom field names are fine and i did
  attached the post and the page to their custom fields and everything..</p>