Dynamic feature image

[ad_1]

I have a blog where I post some good promotions I find in my niche. When these promotions expire, I want to have a way to show this in post and on the feature image. Maybe like a banner overlaying the feature image that would say “Offer Expired”.

My idea was to make it somehow with ACF and add a filed which would let me choose if this is expired or not. I would also like to add a note in the first line of each post when it is expired.

I am back to WP after quite some time of pause, so I need help how to achieve that.

[ad_2]
1 Comment
  1. Add a class to the image when expired, and add a overlay with some CSS and ::before/::after pseudo elements?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer