Function to swap Listing image with Attribute attachment

A post was merged into an existing topic: Customizing PHP template with child theme