So I'm wondering exactly how I could display my latest post on a page only in certain conditions. I've been looking over the conditions page in the codex, but I'm not seeing how I could do what I have in mind. For example: I will have multiple vendors selling on my site. Each vendor will have their own page on the site. There will be one featured item for sale on the home page,(which we figured out how to do here: Display newest post's custom field content on homepage, daily ) and when it happens to be a certain vendor's item, I would like the post to display on their specific page as well. So I would need to only show the newest post(again, I got help with this in the provided link) on their page, ONLY when it happens to be their item. As always, thanks in advance!
Possibly you could wrap the code on the vendor's page in a comparison. So if the vendor's name is the Title of their page, and the newest post has a meta field that hold's the vendor's name, it could look like this:
I'm assuming that you're storing vendor information with all your product entries. Whether you store the title of the vendor, the unique ID, or the slug, that comparison should be similar.