[Wordpress] New icon on posts

brittbr2

Member
Messages
99
Reaction score
11
Points
8
To display a new icon or text add this code to single.php
Code:
<?php if( date('U') - get_the_time('U', $post->ID) < 24*60*60 ) : ?>text<?php endif; ?>
To add to the front page find the following
Code:
 title
In the following
Content.php
Content-video.php
Content-status.php
Content-image.php
Content-gallery.php[/code]
 

Patrick.B

Member
Messages
96
Reaction score
4
Points
8
Hi !

I'm confused, the tutoriel is probably good, but what's the name of CMS tuto is related ? ^^
 

Patrick.B

Member
Messages
96
Reaction score
4
Points
8
In my memories [Wordpress] isn't in title, maybe too much beer last night ... ^^''
 

brittbr2

Member
Messages
99
Reaction score
11
Points
8
Essentially it does this
SjQNCbJ.png
 
Last edited by a moderator:
Top