Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Front Page
- */
- //Display the header
- get_header();?>
- <div id="container">
- <div id="content" role="main">
- <?php
- /*code to display slideshow*/
- get_a_post(211); ?>
- <?php the_content(); ?>
- <?php
- if ( is_active_sidebar( 'my-widget-areaa' )) {
- dynamic_sidebar( 'my-widget-area' );
- }
- ?>
- <?php
- $sticky = get_option('sticky_posts');
- rsort( $sticky );
- $sticky = array_slice( $sticky, 0, 2);
- query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 2 ) );
- if (have_posts()) : while (have_posts()) : the_post();?>
- <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="entry">
- <?php the_content(); ?>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php
- /*code to display most recent news article*/
- query_posts('showposts=1&cat=3');
- while(have_posts()) : the_post();
- ?>
- <h2 class="entry-title"><?php the_category(3); ?></h2>
- <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="entry">
- <?php the_excerpt(); ?>
- </div>
- <?php endwhile; ?>
- </div><!-- #content -->
- </div><!-- #container -->
- <?php get_sidebar();
- //Display sidebar
- ?>
- <?php get_footer();
- //Display the footer
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement