WordPress.org

Ready to get started?Download WordPress

Forums

Permalink solely based on timestamps (7 posts)

  1. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Can I ask why you particularly favour this structure ?

  2. OperaManiac
    Member
    Posted 10 years ago #

    i wanted to ask that question podz but i rarely get a logical answer :p

  3. phidauex
    Member
    Posted 10 years ago #

    I'm not sure what his reasons are, but I can see favoring this technique when truly unique permalinks are needed. There was some hubbub about using permalinks as Atom IDs, and the general consensus was that you shouldn't, because permalinks, based on titles, are subject to change. Well, ID numbers can also be subject to change as you change blog systems, and can be confusing or require lots of translation tables between number systems. However, the time stamp is unique. You aren't going to make two posts in one second, and there is no reason to go back and change the time stamp later, like you might do with a title.
    Anyway, I think it does sound like a pretty good way to do permalinks, and you could make a good case for using that permalink as an Atom ID, which would be handy.
    peace,
    sam

  4. phidauex
    Member
    Posted 10 years ago #

    Morgaine... Let me know where the code is that you were looking at, I'll take a look too, maybe I can come up with something.. (don't hold your breath, but at least I'll take a look).
    peace,
    sam

  5. Morgaine
    Member
    Posted 10 years ago #

    Well, I believe I've already mentioned in the initial post in this thread why I favour this structure (third paragraph). I also want to be able to post entries without title. When I would use the %postname% without entering a title, a blank would be returned, hence no permalink would be available. There's always a post time, as opposed to a title.
    For selfish reasons I would like to be able to use timestamps only as well. Took me a while to figure out how to convert my MT blog from using IDs to using a future proof uri, and for the same reasons mentioned above, I opted to use timestamps only (well, I made the mistake to have 'index' at the end of my permalinks, even though the posts are accessible without the 'index' at the end, but I could correct this if WordPress provided the option of using timestamps only)
    I would be able to put the WP blog at the exact same location my MT blog is at the moment and nobody would note the difference (well, as far as permalink structure is concerned, I would use the occasion to make some minor design changes, write a post about my move to WP, link to WP and advertise it as being the alternative to MT).

  6. Morgaine
    Member
    Posted 10 years ago #

    Sam,
    'he' actually is a 'she' :-) but you hit the nail on the spot, I think timestamps are the identifier that is most unique and at the same time portable to other blogging applications.
    As for the code, let me reference the excellent PHP Cross Reference of WordPress 1.2 (Mingus) and more specifically the function url_to_postid and function the_permalink.
    Hope that helps (might be wrong as I know only slightly more than nothing about PHP),
    Kind regards,
    Morgaine

  7. Morgaine
    Member
    Posted 10 years ago #

    Well, guess I AM the only one ... seems I'm out of luck. *sob*
    Morgaine

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.