How can I achieve this in Wordpress?

Discussion in 'PHP' started by Highena.com, Aug 28, 2008.

  1. #1
    I'm still quite new to PHP, so pls bare with me. What I'd like to do in WP is instead of displaying the date and time in posts have it as numbers counting down from a specified number.

    Example: First post on jan 1 09 would display as "number 100"
    Second post written the next day would display as "number 99"
    and so on...

    Is this possible and if so how easy is it to implement?

    thanks
     
    Highena.com, Aug 28, 2008 IP
  2. brassdragon

    brassdragon Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you would use the 'for' function.
     
    brassdragon, Aug 28, 2008 IP
  3. Highena.com

    Highena.com Active Member

    Messages:
    770
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #3
    thanks, but what's the 'for' function?
     
    Highena.com, Aug 29, 2008 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    so you want to number every post in the WP for every comment?
     
    bartolay13, Aug 29, 2008 IP
  5. Highena.com

    Highena.com Active Member

    Messages:
    770
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #5
    No, nothing to do with the comments. Instead of displaying date and time for the post, I'd like it to display "Number 100" (first post) then count down to "Number 1" each time I post. Essentially creating a Top 100 list.
     
    Highena.com, Aug 29, 2008 IP