WordPress.org

Ready to get started?Download WordPress

Forums

Blix problems (8 posts)

  1. Simon Clark
    Member
    Posted 8 years ago #

    I have had some problems with the date. In the single post it is correct

    <em class="date"><?php the_time('jS F, Y') ?><!-- at <?php the_time('h:ia') ?>-->

    with day,month, year

    but in the main page it is

    " class="permalink" title="Permalink"><?php the_time('jS M, \'y') ?><!--, <?php the_time('h:ia') ?>-->

    with month, day year,

    How do i fix it?

    Also how do i add text to the search box?

  2. Class
    Member
    Posted 8 years ago #

    Edit (your theme) index.php.
    http://no2.php.net/manual/en/function.date.php

  3. Simon Clark
    Member
    Posted 8 years ago #

    This is the code

    " class="permalink" title="Permalink"><?php the_time('jS M, \'y') ?><!--, <?php the_time('h:ia') ?>-->

    j = day of the month without leading zeros
    S = English ordinal suffix for the day of the month, 2 characters
    M = A short textual representation of a month, three letters

    So why is it coming up with "August 7th, 2005"

  4. Class
    Member
    Posted 8 years ago #

    What do you have for dateformat in control panel/options?
    AFAIK, it will be overridden if the_time() have options set.
    Did you try editing your index.php and use the <?php the_time('jS F, Y') ?> from the single?

  5. Simon Clark
    Member
    Posted 8 years ago #

    in the control panel it has the (jS m y) and yes i did edit the index.php

  6. primaljourney
    Member
    Posted 8 years ago #

    Sorry to change the subject slightly, does anybody know were the code is that controls the text colour for the main dispatch I need to make it white.

    Cheers

  7. Class
    Member
    Posted 8 years ago #

    @primaljourney: thats not even close to topic..

    @feedyourfeet:When you say 'single', are you talking about the file single.php or entry vs. minientry in index.php?

  8. Simon Clark
    Member
    Posted 8 years ago #

    Arrrgh, I found what what happend. I was changing the Permalink not the post, Thanks for your help class. Sorry about that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.