ACF Relationship + WP Template Parts
But, when an offer has no related_products, ALL products are being shown. This is because you’re not doing anything to check if the field has a value before running your query. If this is empty: $related_products = get_field(‘related_products’); Then that makes the query argument equivalent to: ‘post__in’ => [], And if that argument value is … Read more