I’m not sure what I’m doing wrong here. I have a field called “grid_thumbnail” and a “related_projects” post_object. I am able to display the title of the related post. I just don’t know how to get the Image URL of that related post. Suggestions?
<?php foreach(get_field('related_projects') as $post_object): ?> <li> <img src="<?php echo get_field('grid_thumbnail'); ?>"><br /> <a href="<?php echo get_permalink($post_object->ID); ?>"><?php echo get_the_title($post_object->ID) ?></a> </li>
- The topic ‘[Plugin: Advanced Custom Fields] Unable to get URL from post_object’ is closed to new replies.