I want to display a 'NEW' graphic on a custom post type. I would like to automate it so that the graphic displays conditionally whenever the post date is within the last 30 days. I can see lots of conditional display conditions, but post date is not there. Can you let me know if this can be done?
Thank you for contacting us and I'd be happy to assist.
To achieve this, you'll first need to register a custom shortcode, that can return the number of days, lapsed between the post's published date and today: