in_the_loop = true; //for use the_tags() in multi lopp if ($cat_select) { $r = new WP_Query($author_where . $tag_where ."cat=$cat_select&showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); } else { $r = new WP_Query($author_where . $tag_where ."showposts=$disp_count&what_to_show=posts&nopaging=0&post_status=publish"); } while($r->have_posts()){ $r->the_post(); if ($day_select == 1){ $post_date = mktime (0, 0, 0, get_the_time("m"), get_the_time("d"), get_the_time("Y")); $base_date = $date_today - $between_days; if ($post_date < $base_date) continue; } if ($day_select == 2){ $post_date = mktime (0, 0, 0, get_the_time("m"), get_the_time("d"), get_the_time("Y")); if (empty($latest_date)) $latest_date = $post_date; $base_date = $latest_date - $between_days; if ($post_date < $base_date) continue; } ob_start(); the_ID(); $post_id = ob_get_contents(); ob_end_clean(); $title = xpress_the_title('echo=0'); ob_start(); the_permalink(); $permalink = ob_get_contents(); ob_end_clean(); ob_start(); the_author_posts_link(); $author = ob_get_contents(); ob_end_clean(); ob_start(); the_category(' • '); $category = ob_get_contents(); ob_end_clean(); if (function_exists('the_tags')){ ob_start(); the_tags(__('Tags:', 'xpress') . ' ',' • ',''); $tags = ob_get_contents(); ob_end_clean(); } else { $tags = ''; } $param = array( 'configration_select' => 0, 'do_excerpt' => $excerpt, 'excerpt_length_word' => $excerpt_size, 'excerpt_length_character' => $excerpt_size, 'echo' => 0 ); $post_content = xpress_the_content($param); ob_start(); the_modified_date($date_format); $post_modified_date = ob_get_contents(); ob_end_clean(); ob_start(); the_modified_date($time_format); $post_modified_time = ob_get_contents(); ob_end_clean(); ob_start(); the_time($date_format); $post_date = ob_get_contents(); ob_end_clean(); ob_start(); the_time($time_format); $post_time = ob_get_contents(); ob_end_clean(); ob_start(); comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); $comments_popup_link = ob_get_contents(); ob_end_clean(); // all_in_one ob_start(); ?>

ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')'; echo ' | '; // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | '); printf(__('Posted in %s', 'xpress'), get_the_category_list(', ')); echo ' | '; edit_post_link(__('Edit', 'xpress'), '', ' | '); comments_popup_link(__('No Comments »', 'xpress'), __('1 Comment »', 'xpress'), __('% Comments »', 'xpress'), '', __('Comments Closed', 'xpress') ); ?>
' . $title . ''; $post_date_time = $post_date . ' ' . $post_time ; $post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ; $trackback_url = trackback_url(false); $post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0'); // if (empty($tags)) $tags = __('Not Tag'); $row_data = array( 'post_id' => $post_id , 'post_title' => $post_title , 'post_content' => $post_content , 'post_date' => $post_date , 'post_time' => $post_time , 'post_date_time' => $post_date_time , 'post_modified_date' => $post_modified_date , 'post_modified_time' => $post_modified_time , 'post_modified_date_time' => $post_modified_date_time , 'post_author' => $author , 'post_category' => $category , 'post_tags' => $tags, 'post_views' => $post_viwes, 'comment_link' => $comments_popup_link , 'trackback_url' => $trackback_url , 'all_in_one' => $all_in_one ); $block['contents']['item'.$item_no] = $row_data; $item_no++; } $block['data_count'] = $item_no; //xml unserialise error } return $block ; } ?>