WordPress.org

Ready to get started?Download WordPress

Forums

Can this be done? (3 posts)

  1. chellethecat
    Member
    Posted 7 years ago #

    I absolutely love the flexibility that WordPress provides and the mods that can be added to make things even more customizable but one thing is missing from one of my blogs.

    I'm using a wordpress installation for a Role-Playing website, making the blog as if one of my characters is writing it. The problem is, the character in question is in the year 2090 currently.

    Is there anyway to set the date so that my posts will be set in this time? I tried adding a ton of hours and on the general options page of the dashboard it actually WAS displaying the date I wished (June 17, 2090). However, when I went out to view the site itself, the calendar is displaying July 2174. It's pretty much doubling the years difference. If I cut the hours difference in half in the options, then the calendar displays the correct date, but the admin section all have the date of May 30, 2048.

    If what I want to do is possible and I'm just missing a good way to go about it, please let me know - the help would be greatly appreciated.

  2. monkeypup
    Member
    Posted 7 years ago #

    The easiest way to do this, in my opinion, is just to show only the day and month. Then, you need not specify the year. OR, you can fake it. Here's what I mean:

    First, you want to find the spot in the loop where the date is called for. It will likely look like this:


    <?php the_date('buncha stuff in here'); ?>

    or


    <?php the_time('buncha stuff in here'); ?>

    Replace whichever one you find with this:


    <?php the_date('m-d', '<h2>', '</h2>'); ?>

    Today, that would output: 5-12, rather than 5-12-06.

    If you wanted to make it seem 2090, then do this:

    <?php the_date('m-d', '<h2>', '-2090</h2>'); ?>

    which would today output: 5-12-2090

    If you need more instruction on where to find the loop, or what the loop is, respond to this thread and I'll walk you through it.

  3. chellethecat
    Member
    Posted 7 years ago #

    Thanks for the reply! I'll give this a try.

Topic Closed

This topic has been closed to new replies.

About this Topic