Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying Category Archive pages.
- *
- * @package WordPress
- * @subpackage Twenty_Ten
- * @since Twenty Ten 1.0
- */
- ?>
- <?php get_header(); ?>
- <!-- This is the blog page -->
- <div class="blogwrapper">
- <!-- Categories Sidebar -->
- <div class="categories">
- <h2>Categories</h2>
- <ul>
- <?php wp_list_categories('orderby=name&title_li=&child_of=13'); ?>
- </ul>
- </div>
- <!-- Finished Categories Sidebar -->
- <div class="blog">
- <div class="content" id="content">
- <div class="posts" id="posts">
- <?php $catname = wp_title('', false); ?>
- <?php query_posts("category_name=$catname"); ?>
- <?php $posts = get_posts("category_name=$catname"); foreach ($posts as $post) : start_wp(); ?>
- <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) : ?>
- <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
- <div class="post">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="nolinkborder">
- <img src="<?php echo $image[0]; ?>">
- </a>
- </div>
- <?php else: ?>
- <?php endif;?>
- <?php endforeach; ?>
- <div class="pagination">
- <?php previous_posts_link('Newer »'); ?>
- <?php next_posts_link('« Older'); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Finished Blog Page-->
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement