Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Buddypress theme – no date on posts – only time (9 posts)

Started 1 year, 9 months ago by: Steen

  • Profile picture of Steen Steen said 1 year, 9 months ago:

    I have just changed to the buddypress theme to allow the user interaction, but unfortunately all posts now only show the time it was posted and not the date.
    Does anyone know how to fix that?

  • Profile picture of @mercime @mercime said 1 year, 9 months ago:

    Open up index.php of bp-default theme line 26

    http://trac.buddypress.org/browser/tags/1.2.5.2/bp-themes/bp-default/index.php#L26

    and see code here – http://buddypress.pastebin.com/iWdcBik4

  • Profile picture of Steen Steen said 1 year, 9 months ago:

    Super it worked. Thank you for the quick help!
    I added H:i in front of the date codes to get the time of the post also

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 9 months ago:

    I strongly recommend to build this into a child theme, otherwise you are going to regret it when BuddyPress is updated in future.

    http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

  • Profile picture of borgopio borgopio said 1 year, 6 months ago:

    for me the same thing not only on bp-default/index.php
    even in single blog post at bp-default/single.php

    Anyway +1 for @DJPaul suggestion.

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 6 months ago:

    Since you’ve dug up a 3 month old post, the theme for the future 1.3 release has these switched to date now :)

  • Profile picture of dinoraptor101 dinoraptor101 said 1 year, 3 months ago:

    Gosh! omg it worked like a charm!! replacing the index.php AND single.php is a must.. to assure both pages on display or on post display.. for date to appear :) time appears when it’s less that 1 day old..

    Thanks alot!

  • Profile picture of jennyd jennyd said 1 year ago:

    Since this is the only thread I can find on the subject . . .

    How is this done with the current version of BuddyPress? The default index.php no longer looks much like mercime’s version above, and I quite simply can’t find the right code to tweak.

    (Works fine on the individual posts, of course.)

    I’m sure it’d be better in a child theme, but the child themes others have created don’t include an index.php, and I’m not much interested in creating my own.

  • Profile picture of aces aces said 1 year ago:

    It would have been better to start a new thread, but….

    bp default theme index.php still has <?php the_time() ?> in it.

    If you copy the index.php from the buddypress parent (ie: http://yoursite.com/wp-content/plugins/bp-themes/bp-default/index.php or your current alternative parent) theme to the child theme then it doesn’t take much creation…..

    all you need to do then is the edit suggested by mercime…

    Edit
    <?php the_time() ?>
    to
    <?php the_time('F j, Y') ?>
    and you’re done.