Support

Account

Home Forums General Issues Get Post ID from Page Link Reply To: Get Post ID from Page Link

  • You might have to use the Post Object field instead and then maybe do something like:

    <?php 
    	$post_objects = get_field('post_objects');
     
    	if( $post_objects ): ?>
    
        <?php foreach( $post_objects as $post_object): ?>
    
        	$postID = $post_object->ID
    
                <a href="<?php echo get_permalink($postID); ?>">
                	<?php echo get_the_title($postID); ?>
                </a>
    
        <?php endforeach; ?>
    <?php endif; ?>