Hi 👋
we will use WordPress get_the_date()
Hook.
I will explain both. If you have created meta field for date post_custom_date
. OR using ACF created field with name post_custom_date
.
Inspiration
When I was developing the site with Divi theme there is a custom post listing module but I don’t want the date of publishing post instead i want my custom date which I have created with ACF.
So I have searched and found this solution Enjoy. 🎉
Put this code in functions.php
file.
For custom meta Without Acf
|
|
For custom meta With Acf
|
|
checkout all hooks hooks
For Refrence
https://developer.wordpress.org/reference/functions/get_the_date/ https://developer.wordpress.org/reference/functions/the_date/
If it is helpful and saves your valuable Time ⏱ please show your support 👇.
Buy me A Coffee, Thank you and canva ( For Beautiful designs ). Thanks for the reading 👍.