Forums

DATE problem (3 posts)

  1. kbalia8
    Member
    Posted 8 months ago #

    Hi!

    I have a problem with the date of the posts.
    This is the php code of the relevant part: <p class="date"><?php the_time() ?> <?php _e( 'in', 'buddypress' ) ?> - after this, you can only see the time of the creation of the post (pl.: 8:55).

    When I tried to replace the time with a date function it didnt work.

    <p class="date"><?php getdate("Y.m.d H:i") ?> <?php _e( 'in', 'buddypress' ) ?>

    How can I solve this problem?

    Thanks!

  2. keesiemeijer
    moderator
    Posted 8 months ago #

    Try it with the_date()

  3. alchymyth
    The Sweeper
    Posted 8 months ago #

    if using php functions, read up on how they work;
    for instance:

    http://php.net/manual/en/function.getdate.php

    same for wordpress functions:

    http://codex.wordpress.org/Function_Reference/the_time

Reply

You must log in to post.

About this Topic