Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Custom Homepage
- */
- get_header(); ?>
- <div id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
- <div id="highlight-posts" class="flexslider">
- <ul class="slides clearfix">
- <?php $highlight_query = new WP_Query( array(
- 'post_type' => 'post',
- 'posts_per_page' => 3
- ) ); ?>
- <?php /* Start the Loop */ ?>
- <?php while ( $highlight_query->have_posts() ) : $highlight_query->the_post(); ?>
- <li>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php if ( has_post_thumbnail() ) : ?>
- <div class="post-media">
- <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail( 'thumb-slider' ); ?></a>
- </div><!-- end .post-media -->
- <?php endif; ?>
- <div class="slide-post-content">
- <div class="slide-post-inside">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
- <?php the_excerpt(); ?>
- <div class="entry-meta">
- <?php the_time( 'j F Y' ); ?>
- </div><!-- .entry-meta -->
- </div><!-- end .slide-post-inside -->
- </div><!-- end .slide-post-content -->
- </div><!-- end .post -->
- </li>
- <?php endwhile; wp_reset_postdata(); ?>
- </ul><!-- end .slides .clearfix -->
- </div><!-- end #highlight-posts -->
- <div class="page-header">
- <h1 class="page-title">Gossip</h1>
- </div><!-- end .page-header -->
- <?php $main_query = new WP_Query( array(
- 'post_type' => 'post',
- 'offset' => 3,
- 'posts_per_page' => 3
- ) ); ?>
- <?php /* Start the Loop */ ?>
- <?php while ( $main_query->have_posts() ) : $main_query->the_post(); ?>
- <?php
- global $more;
- $more = 0;
- ?>
- <?php
- /* Include the Post-Format-specific template for the content.
- * If you want to overload this in a child theme then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'content', get_post_format() );
- ?>
- <?php endwhile; wp_reset_postdata(); ?>
- <div id="home-widget-areas" class="clearfix">
- <div class="home-widgets">
- <?php dynamic_sidebar( 'home-sidebar-1' ); ?>
- </div><!-- end .home-widgets -->
- <div class="home-widgets">
- <?php dynamic_sidebar( 'home-sidebar-2' ); ?>
- </div><!-- end .home-widgets -->
- </div><!-- end #home-widget-areas -->
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement