• yoggi

    (@yoggi)


    I′m the guy behind the swedish https://www.demalt.info
    I would like to know how to get rid of the “th” after my date. Today it says “februari 28th, 2007” under one of my posts. How do I take away the th after the number? I would be hapy with just the number.

    Cheers
    /Giorgio

Viewing 8 replies - 1 through 8 (of 8 total)
  • ghanshyamgadhiya

    (@ghanshyamgadhiya)

    in php date() function

    S = English ordinal suffix for the day of the month, 2 characters st, nd, rd or th.

    so find that date(‘s’)(here function is
    => the_time(‘F jS, Y’); ) function and remove s from it.
    :-}

    Thread Starter yoggi

    (@yoggi)

    …excuse me for this extremly stupid question but where do I find this? On the wp-content/themes/default/style.css or do I need to download a plugin of some sort?

    ??

    /Giorgio

    ghanshyamgadhiya

    (@ghanshyamgadhiya)

    files are in wp-content/themes/default/

    index.php,
    single.php

    makemead

    (@makemead)

    Check your index.php (the one in wp-content/themes/*template-name*/index.php, not the one in root) for something like this:<?php the_time('F jS, Y') ?> or <?php the_date('F jS, Y') ?>
    Take out the capital S.

    Or you can use <?php the_date() ?> and it will be settable by using the Admin panel “Options” -> “General” -> “Date and time” section -> “Default date format” form field

    Thread Starter yoggi

    (@yoggi)

    I′ll check it up! Thanks for all your tips! “filesharing & co-coding is caring”

    ??

    Thread Starter yoggi

    (@yoggi)

    I don′t know what to do really. The only thing that is written in my index php file is:

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    ghanshyamgadhiya

    (@ghanshyamgadhiya)

    the simple thing is search this text the_time(‘F jS, Y’) in all your file and just remove s.

    Thread Starter yoggi

    (@yoggi)

    I fixed it! Big hug!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing date’ is closed to new replies.