Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Blog
- */
- get_header(); ?>
- <div id="portfolio">
- <header class="portfolio">
- <ul id="menu">
- <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
- </ul>
- <div id="portfolio-content">
- <h1 name="top">Hello.</h1><br />
- <p>lorem ipsum</p>
- </div> </header>
- <br style="clear: left;" />
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('category_name=blog&paged=' . $paged);
- ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div id="entry">
- <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <section class="entry-header">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <h3><?php echo get_the_date(); ?></h3>
- </section>
- <section class="entry-content">
- <?php global $more; $more = 0; the_content('more...'); ?>
- </section>
- </article>
- </div>
- <?php
- endwhile;
- next_posts_link('Previous Posts');
- previous_posts_link('Next Posts');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement