<?php /** * The template for displaying Home page. * * @file index.php * @package VnEconomist news * @author Chinh Tran * **/ get_header(); $category = get_the_category(); $relateCats = get_relate_catID($category[0]->term_id); ?> <div class="wp980"> <div class="toplistbv"> <ul class="menutoplistbv"> <?php $postID_exclude = array(); $args = array('posts_per_page' => 5); $the_query = new WP_Query($args); // The Loop if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); array_push($postID_exclude, get_the_ID()); ?> <li> <a class="a_toplistbv" href="<?php esc_url(the_permalink());
<?php /** * The template for displaying category page. * * @file category.php * @package VnEconomist news * @author Chinh Tran * **/ get_header(); $cat_ID = get_query_var('cat'); $relateCats = get_relate_catID($cat_ID); ?> <div class="wp980"> <div class="topbanner"> <img src="<?php echo get_template_directory_uri(); ?> /images/topbanner.jpg" alt="Chứng khoán " title="Chứng khoán " /> </div> <div class="indexer_wrapper" id="Box_ThiTruong"> <table cellspacing="0" cellpadding="0" class="indexer"> <tbody> <tr> <td id="ChungKhoan0"> <b class="indexer_header">VN-Index</b> <span class='increase'>▲</span><br />581,05 <span class='increase'>6,95 1,21%</span> </td>