Hey guys, not sure why but {{dc:post:publish_date}}
is not showing the blog post published date, instead it’s showing the blog archive page published date instead.
Hello Omar,
Thanks for writing in! The date may not display because you have added this custom CSS:
.excerpt-cont div {
display: none;
}
.excerpt-cont {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
white-space: pre-wrap;
}
Try to remove the class in your Excerpt element and test the site again.
Best Regards.
Hi @ruenel,
I’m not referring to the excerpt, I’m referring to the blog post date shown in the archive. If you observe, all of them are the same date, opening the individual blog post, will show you the correct dates.
Hi Omar,
I have investigated and found that the Looper Data is coming from the Custom Looper while you are trying to show the date from Publish Date which is for the existing page. That is why it shows the same date, you need to add the publish date into the returning array so you can get the date for each post.
Hope it helps.
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.