Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Cake Page
- */
- ?>
- <?php
- get_header(); ?>
- <div id="primary" class="site-content">
- <div id="content" role="main">
- <?php
- $temp = $wp_query;
- $wp_query = null;
- $wp_query = new WP_Query();
- $wp_query->query('showposts=6&post_type=banh-kem'.'&paged='.$paged);
- $count = 0;
- while ($wp_query->have_posts()) : $wp_query->the_post(); $count++;
- ?>
- <div class="product">
- <div class="img_product_list">
- <?php the_post_thumbnail(); ?>
- </div>
- <div class="name_product_list">
- <a href="<?php the_permalink(); ?>" style="color:#ad3b00; text-decoration:none">
- <span><?php the_title(); ?></span>
- </a><br/>
- <span>
- <?php echo get_post_meta( $post->ID, 'wpcf-product-price', true ); ?>
- </span>
- <br/>
- <a class="detail-button" href="<?php the_permalink();?>"><span>Xem chi tiết</span></a>
- </div>
- </div>
- <?php endwhile; ?>
- <?php wp_pagenavi(); ?>
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement