Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Weekly Recipes Page
- */
- get_header(); ?>
- <section class="all">
- <?php get_sidebar(); ?>
- <section class="contentSideBar">
- <header>
- <h3>Latest Recipes:</h3>
- </header>
- <?php
- query_posts('cat=29&showposts=12');
- $ids = array();
- while (have_posts()) : the_post();
- $ids[] = get_the_ID();
- echo '<article>';
- echo '<a href="'; the_permalink(); echo '">';
- the_post_thumbnail();
- echo '<h1>'; the_title(); echo '</h1></a>';
- echo '</article>';
- endwhile;
- ?>
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <div class="prevNext">
- <p class="nextPostsLink"><?php next_posts_link( __( '← Older posts', 'twentyten' ) ); ?></p>
- <p class="previousPostsLink"><?php previous_posts_link( __( 'Newer posts →', 'twentyten' ) ); ?></p>
- </div>
- <?php endif; ?>
- </section>
- </section><!--//.all-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement