Support

Account

Home Forums ACF PRO Post Object within taxonomy. Reply To: Post Object within taxonomy.

  • I would use this code to retrieve the image.

    $feat_image = wp_get_attachment_image_src( get_post_thumbnail_id( $p->ID ), 'image-size', false, '' );

    This way you pass the correct post ID to retrieve the featured image from.

    Then to get the file location, you echo $feat_image[0].