WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks with timestamp (3 posts)

  1. shridharan
    Member
    Posted 3 years ago #

    I need to use a permalink with the following structure
    http://www.mysitename.com/%timestamp%
    with 10 digit timestam that is equivalent to datetime in the form of yyyy-MM-dd hh:mm:ss. But unfortunately, i could not find permalink tag %timestamp%.

    Could anyone tell me how to do this?

  2. Steffen Jørgensen
    Member
    Posted 3 years ago #

    http://codex.wordpress.org/Using_Permalinks

    %year%%monthnum%%day%%hour%%minute%%second%
    should give:
    20110110122723

  3. shridharan
    Member
    Posted 3 years ago #

    Thank you. But it is 14digits. What I need is an equivalent timestamp [the kind of output from the PHP function time()]. Could you please let me know how to do this? (aprroximately i need to perform [((((yyyy*365)+day)*24)*60)*60] to get that number

Topic Closed

This topic has been closed to new replies.

About this Topic