• I would like to have the word “New” (in bold red) put at the beginning of the headline for each new post and have that word stay there for 24hrs. And then after 24hrs it would automatically disappear.

    Any idea how I can do this?

    The site: https://www.mazmessenger.com

    Thanks!

Viewing 1 replies (of 1 total)
  • The best way I could think to do it would be to write a plugin which hooks the title if the date is 24 hours out.

    Else you create a function in your loop (the easier option) which might say:

    if (the_time() > date("d/m/Y", time()-86400))
    {
      print "This post was created within the last day";
    }
    else
    {
      print "This normal title etc..";
    }

    This isn’t tested though, the if argument is likely to be wrong!

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a temporary label "new" to a headline?’ is closed to new replies.