Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

I want to edit my WP calendar?

Jun 18, 2013 by Susan3
Hello,
My WordPress calendar  widget currently links the day it is to the daily archives.  I want the day link to direct to a meeting schedule page and not to the archives.
For example, a Monday link should go to the Monday meeting schedule page and  so on.
Where can I find the files that I can use to edit my calendar?
Any suggestions are welcome
Thank you

1 Answer

0 votes
Jun 18, 2013 by expert
Try  filtering  the function get_day_link() in the functions.php like this:
add_filter('your_day_link','your_filter_day_link',10,4);
function your_filter_day_link($link, $year, $month, $day) {
  $day = date('l', mktime(00, 00, 00, $month, $day, $year)); // Monday,Thuesday,Wednesday, etc

  // your link here

  return $link;
}