WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Calendar Showing results on picked day and before (5 posts)

  1. bobibrown0
    Member
    Posted 1 year ago #

    Hello,

    I am using the built in calendar of wordpress. When you click on a day, you have the posts of this day. But What I would like to do, is to search for posts of this day and older, so the user will see the website as it was on day X.

    I think I'll have to change something in the core to do so, but I don't know what?

    If anybody have a clue, thanks.

  2. dotnordic
    Member
    Posted 1 year ago #

    You should never change core files because any change you do will be reverted with the next WordPress update. Locate the function that produces the calendar, copy it in to your own theme files (functions.php or other files you use to store theme specific functions). Give the function a new name. Customize it as much as you want.

  3. bobibrown0
    Member
    Posted 1 year ago #

    You're right, it's obvious but I did not thought about that, thanks for the advice. By the meantime, I haven't been able to locate the function.

  4. dotnordic
    Member
    Posted 1 year ago #

    Calendar widget is in /wp-includes/default-widgets.php

  5. bobibrown0
    Member
    Posted 1 year ago #

    Alright, I haven't tried anything yet, but I found the function, I'll work on it later, thanks a lot for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic