I need to use the default calendar widgets, but instead to highlight the article's date, I would show the events date
What's the best way to achieve this?
Thanks in advance :)
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
I may be wrong but I don't think you can modify the Calendar Widget at least not that easy as like passing a post type and a field to query for.
You have a few options:
get_calendar()on line 1.406 on general-template.php file (wp 4) and pass it via
ps: don't modify general-template.php is a bad practice and when wordpress gets updated you will loose all your modifications.
Read more about it:
If you have PHP and MySQL skills this should give you a starting point in how to solve this.
Sorry for bad english.