| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
global $post; |
| 5 |
$post_id = get_the_ID(); |
| 6 |
$title = get_the_title( $post_id ); |
| 7 |
$titlelink = get_permalink( $post_id ); |
| 8 |
$post_thumb_id = get_post_thumbnail_id( $post_id ); |
| 9 |
$user_id = $post->post_author; |
| 10 |
$author_link = get_author_posts_url( $user_id ); |
| 11 |
$display_name = get_the_author_meta('display_name'); |
| 12 |
$time = get_the_date(); |
| 13 |
$timeModified = get_the_modified_date(); |
| 14 |
$comment = get_comments_number(); |
| 15 |
$view = get_post_meta(get_the_ID(),'__post_views_count', true); |
| 16 |
$post_time = human_time_diff(get_the_time('U'),current_time('U')); |
| 17 |
$reading_time = ceil(mb_strlen(strip_tags(get_the_content()))/1200).__(' min read', 'ultimate-post'); |