Every time i publish a new post i want to display an icon like a badge (NEW) and after a specific time it will disappear.
Lets say i publish a new post and i want to display that it is a new post. So i want to insert an icon that for example a star, in each new post in the blog list view into the metadata of the posts. Also i want to be removed after a specific time will pass. Lets say in one day or 24 hours the icon should be removed automatically.
How can i do this?