WordPress loop, show only one post per custom field
I would add an array at the top to store the company’s ID as you loop through all the deals. Every time you go through the loop you check the array for the current company ID. If it isn’t there then you can safely show that deal. Then add the ID to the array so … Read more