Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

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, dailyDisplay 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!

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!

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!

Source Link
Anthony Myers
  • 217
  • 2
  • 4
  • 12

Display Latest Post on a Page Conditionally

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!