How to display twitter like time in WordPress site

If you want to show time format in 1 day ago, a month ago etc. then here is the code. For showing the date in twitter like format just copy below code to your functions.php in WordPress theme and call the function where you want to show date.

function titter-like_time( $type = 'post' ) {
        $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
        return human_time_diff($d('U'), current_time('timestamp')) . " " . __('ago');

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us