Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template name: Homepage
- */
- ?>
- <?php get_header(); ?>
- <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
- <div class="eightcol text_content">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <div class="big"><?php meta('intro_tekst'); ?></div>
- <div class="sevencol">
- <div id="uitgelicht">
- <?php
- // The Query
- $the_query = new WP_Query( 'post_type=post&category_name=uitgelicht' );
- // The Loop
- while ( $the_query->have_posts() ) : $the_query->the_post();
- ?>
- <h2><?php meta('uitgelicht_titel'); ?></h2>
- <?php meta('uitgelicht_tekst'); ?>
- <?php
- endwhile;
- // Reset Post Data
- wp_reset_postdata();
- ?>
- </div> <!-- end uitgelicht //-->
- <?php the_content(); ?>
- </div> <!-- end fourcol //-->
- <?php endwhile; else: ?>
- <p>Deze pagina bevat momenteel (nog) geen inhoud.</p>
- <?php endif; ?>
- <div class="fivecol news_homepage last add_bottom">
- <div class="news_homepage_core roundedhallo">
- <h2>Actueel</h2>
- <?php
- // The Query
- $the_query = new WP_Query( 'category=1&posts_per_page=3' );
- // The Loop
- while ( $the_query->have_posts() ) : $the_query->the_post();
- ?>
- <div class="news_item">
- <h3><?php the_title(); ?></h3>
- <p class="news_date"><?php the_time('d-m-Y'); ?></p>
- <?php the_excerpt(); ?>
- </div>
- <?php
- endwhile;
- // Reset Post Data
- wp_reset_postdata();
- ?>
- </div> <!-- end news_homepage_core //-->
- </div> <!-- end fivecol //-->
- <div class="twelvecol">
- <h1>Meest bekeken</h1>
- <p class="frontpageheatmap">
- <?php
- // The Query
- $the_query = new WP_Query( 'post_type=tagcloud&posts_per_page=999' );
- // The Loop
- while ( $the_query->have_posts() ) : $the_query->the_post();
- ?>
- <a style="font-size: <?php meta('font_size'); ?>px;" rel="tag" title="<?php the_title(); ?>" href="<?php meta('tag_link'); ?>"><?php the_title(); ?></a>
- <?php
- endwhile;
- // Reset Post Data
- wp_reset_postdata();
- ?>
- </p>
- </div> <!-- end eightcol //-->
- </div> <!-- end eightcol //-->
- <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement