• Hi, guys.

    I’m running a Big Brother website (Big Brother launches tomorrow).

    On the site i have a heading on the single page with a custom string that gets the data we input through the dash board.

    The custom string is –

    <?php $day = get_post_meta($post->ID, "day", $single = true);
    if ( $day ) { echo $day; } else { the_time('D j F'); } ?>

    I was wondering if they was a script i could use to get the day that we posted the story automatically. – In the form of Day: 1, Day: 2 etc.

    For example, on the sidebar we have a javascript that brings up the current “day number” in terms of days the house (Today being Day: -1)

    If i put this javascript in place of the custom string, no matter if the article was posted 5 weeks ago, the date still shows the day for today.

    I hope this makes sense and appreciate any help. – i have used the search function prior to posting.

    For reference, the “day script” can be found here:
    https://totalbigbrother.com/js/daycount.js

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Day Counter – Posted on Day 2 etc’ is closed to new replies.