WordPress.org

Ready to get started?Download WordPress

Forums

Calendar: link to post instead of daily archive (2 posts)

  1. clea_teclea
    Member
    Posted 8 years ago #

    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 http://www.enlarecamara.com/?m=20050401), 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.

    Thanks

  2. clea_teclea
    Member
    Posted 8 years ago #

    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??

Topic Closed

This topic has been closed to new replies.

About this Topic