This works when a post has an expiration date. However, my current post type only has expiration dates for some posts. That's where the problem is - when I use that shortcode for a post that doesn't have an expiration date, it displays the current date, making it look like it's about to expire when it's not. Is there any way to only show an expiration date, or say no expiration if there isn't one set, something like that?
I'm using the shortcode in the content template of a query view (first screenshot). The second screenshots show the results of the view with the expiration date next to the Read More button. The first result, "A 52-page guide for landowners considering leasing their land for farming from Land For..." has an expiration date set for 8/10, and shows that correctly. All other results (including "A Brief Introduction to Agricultural Co-ops from OSU" have no set expiration date). The next two screenshots show the backend expiration status of both posts.
Can you please share problem URL of your view and admin access details. I will have to check if it stores the current date as post expiration date or not.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
One thing I forgot to mention - the site is behind a coming soon page - you'll be able to see it once you login in with the credentials I supplied above.