Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Side: How to Display Something for 24 Hours


  • bpisimone
    Participant

    @bpisimone

    In bbpress I was able to display a code string for 24 hours with this snippet:

    <?php if ( (current_time(‘timestamp’) – 24*60*60) < strtotime($topic->topic_start_time) ) : ?>

    It does not work on BP/Bbpress. How should this be done here?

Viewing 1 replies (of 1 total)

  • Paul Wong-Gibbs
    Keymaster

    @djpaul

    Where exactly are you trying to work this? Also, that’s just a IF statement; it may evaluate true or false but that line or itself won’t produce anything on the page.

Viewing 1 replies (of 1 total)
  • The topic ‘Forum Side: How to Display Something for 24 Hours’ is closed to new replies.
Skip to toolbar