title: Get ID of Page in ACF
body: <p>I have a very simple loop in which I want to display some posters, and once clicked to show the popup with the related product. I have created this with a custom post type and with ACF Page Link as field type.</p>
  
  <p><a href="https://i.stack.imgur.com/nqpho.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nqpho.jpg" alt="enter image description here"></a></p>
  
  <p>Now After having created this ACF field for my custom Post type I can select my desired Product (for which I will need the ID) from a Metabox</p>
  
  <p><a href="https://i.stack.imgur.com/Hpqdx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hpqdx.jpg" alt="enter image description here"></a></p>
  
  
  
  <p>My current loop</p>
  
  <pre><code>    &lt;ul class="products columns-5"&gt;
          &lt;?php $args = array('post_type' =&gt; 'posters'); ?&gt;
          &lt;?php $loop = new WP_Query($args); ?&gt;
          &lt;?php if ( $loop-&gt;have_posts() ) : while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;
          &lt;li class="product" style="width: 330px;"&gt;
             &lt;div class="product-inner clearfix"&gt;
                &lt;div class="mf-product-thumbnail"&gt;
                   &lt;a href="&lt;?php the_field('my_link'); ?&gt;" data-id="&lt;?php echo get_permalink($postID); ?&gt;" class="mf-product-quick-view" tabindex="0"&gt;&lt;img width="300" height="450" src="&lt;?php echo get_the_post_thumbnail_url($post_id, 'full'); ?&gt;" class="" alt=""&gt;&lt;/a&gt;
                &lt;/div&gt;
             &lt;/div&gt;
          &lt;/li&gt;
          &lt;?php endwhile; ?&gt;
          &lt;?php else: ?&gt;
          &lt;?php endif; ?&gt;
          &lt;?php wp_reset_postdata(); ?&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p>While the a href link works using a custom field, the problem I am currently trying to solve is to get the actual ID of the product as it seems to be required to work with <strong>data-id</strong>. I've tried to add get_permalink($postID);  however this does not seem to be working. Some expert advice would be greatly appreciated, thank you.</p>