Support » Fixing WordPress » Calendar: link to post instead of daily archive

  • I’ve been searching on the forums but couldn’t find help, so here’s my question:

    I’m running a photolog and use get calendar, which is nice because it shows when posts have been published. However, being a photolog I post no more than ONE post a day.

    I am using the excerpt to create a thumbnail gallery for the archives, and because the calendar links to ALL the daily posts (for example, I get to see an archive view for just one day, i.e., just the thumbnail.

    I would like the calendar to point at the post ID of that day, so that when somebody clicks on a day they will see the whole post and not just the excerpt (the thumbnail).

    I guess the only way to do that is to change something in wordpress’ core code, but I don’t know where to begin with. Any help will be appreciated.


Viewing 1 replies (of 1 total)
  • I have been investigating the code of template-functions-general.php and I believe I would need to change this line:

    echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "" title="$ak_titles_for_day[$day]">$day</a>";

    Get_day_link should be replaced with something like the_permalink, but that doesn’t work outside of The Loop. get_permalink doesn’t work either, as it displays the same permalink for all calendar entries.

    Any ideas??

Viewing 1 replies (of 1 total)
  • The topic ‘Calendar: link to post instead of daily archive’ is closed to new replies.