WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] posting without exact date (6 posts)

  1. dalk
    Member
    Posted 5 years ago #

    hello,

    i want to set up a wordpress site with the letters of a famous, now dead author. mostly it is easy, whenever the letter is timestamped: i will publish it the day the letter was sent, i.e. may 24th 1854. but in a few occasions one can date the letter only within a timeframe, like: august 1870. or sometimes only the year is known. can anyone help me to find a workaround?
    i very much appreciate any suggestion which might be able to lead to a solution
    thanks
    martin

  2. willkemp
    Member
    Posted 5 years ago #

    Unfortunately, due to the format the dates are stored in the database in, it's not possible to store only part of a date.

    The only solution i can think of is to use a different field to store these partial dates - as text strings - rather than as dates (possibly by using a plugin such as Pods or Flutter) and change the template to use this field if it's present, and the normal date field if not.

  3. dalk
    Member
    Posted 5 years ago #

    Thank you very much, that sounds logical and possible to set up! I will investigate further with your plugins!

    Best
    Martin

  4. dalk
    Member
    Posted 5 years ago #

    Having looked through your plugins i was wondering if I couldn't find a solution via the "Custom field" instead of using plugins, again via an if-routine (If not empty). Or do you suppose that is not possible?

  5. willkemp
    Member
    Posted 5 years ago #

    Yes, that sounds like a better solution. Any old field would do really - so long as you're never likely to need to use it for anything else.

  6. diogenes_3
    Member
    Posted 4 years ago #

    @dalk, also bear in mind, that currently (see this thread) pre-1970 dates will not display properly, so until that is fixed, your approach will not work anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags