I’ve configured my products to use the repeater fields to show post objects. I’d now like to query this data and use as a conditional statement, so if a product uses a specific post object within it’s repeater.
wc_get_template_part( ‘content’, ‘product’ );
Is this possible?
ACF does not have have what you’re looking for built in. You’d need to create this yourself, but it could be done.
You’d need to create a function that would look through the repeater field of the post and see if any of the sub fields contains a reference to the post object you’re looking for. The function would need to be built to match all of the fields and relationships specific to you’re post types and custom fields.