Hey AC!
Can you sent along a link to your site? It would be easiest if I have a link to both a post that should have the date, and one that shouldn’t have the date, based on the number you entered on the settings page for my plugin.
Ben
Thread Starter
AC
(@soco)
Ok so like I said all the dates are missing they so up for a second then disappear.
In the settings I have it set for 30days and here are two articles
this was written 10 days ago
http://www.madamesque.com/how-to-wake-up-to-life/
This was written in August
http://www.madamesque.com/why-it-is-so-hard-to-forgive-someone/
as you can see they both have the same results.
Thanks for sending those along.
This is a weird one!
Are you running any sort of caching on the site? The way my plugin works is that it uses the date that the server outputs to calculate whether or not to load a stylesheet to hide the date.
Your site is inaccurately declaring the date of that newer post (somehow) which is most often caused by a caching plugin, which functionally removes the server from the equation by delivering a “snapshot” of the post content to save on the server hit, which speeds up your site for visitors.
The best way to narrow down the issue is to deactivate plugins to see if one of them is causing a conflict. Start with caching plugins.
Your code above looks good, and the plugin is “working” in that it is loading that stylesheet. Now we just have to help it only deliver that stylesheet to the correct posts. So that narrows it down to an issue with either another plugin, or how that theme calls for the date. Because it’s a pay theme, I can’t download it to my dev environment and poke through it.
We’ll get it figured out, though.
Following up here. Were you able to get this resolved?
Let me know if I can help. I’ll go ahead and mark this issue as resolved, but I’m still available to help you if you need me.
Ben