Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do you change the Freshness of post date format?


piedpiper21
Member

@piedpiper21

I like ck’s method of displaying the dates and I tried applying her code to the front-page.php file. But when I change the code under ‘$super_stickies’ and ‘$topics’ from

<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>

to

<td class="num"><a href="<?php topic_last_post_link(); ?>"><span class=timetitle title="<?php echo date("r",strtotime($topic->topic_time)); ?>"><?php topic_time(); ?></span></a></td>

There is no change.

If I change it to

<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php echo date("r",strtotime($topic->topic_time)); ?>"></a></td>

I get a properly formatted time description. But I can’t get the title to work. What am i doing wrong?

Skip to toolbar