Advertisement
Mostout

category.php

Dec 23rd, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.71 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4.         <title><?php is_home() ? bloginfo('description') : wp_title(''); ?> | Mostout International</title>
  5.         <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
  6.     </head>
  7.     <body>
  8.         <div class="hero-enough">
  9.             <div class="hero-enough-main">
  10.                 <div class="hero-enough-main-header">
  11.                     <?php get_header(); ?>
  12.                 </div>
  13.                 <div class="category-hero">
  14.                     <div class="hero-enough-main-pody">
  15.                         <h2><?php single_cat_title(); ?></h2>
  16.  
  17. <h1><?php the_title(); ?></h1>
  18.  
  19.     <?php $categories = get_categories( array ('orderby' => 'count', 'order' => 'desc' ) ); ?>
  20.  
  21.     <?php foreach ($categories as $category) : ?>
  22.  
  23.         <?php query_posts( array ( 'category_name' => $category->slug, 'showposts' => '5') ); ?>
  24.  
  25.         <h2><?php single_cat_title(); ?></h2>
  26.  
  27.         <?php if ( have_posts() ): ?>
  28.  
  29.             <ul class="thumbs">
  30.  
  31.                 <?php $i = 0; ?>
  32.  
  33.                 <?php while ( have_posts() ) : ?>
  34.  
  35.                     <?php bm_ignorePost($post->ID); ?>
  36.  
  37.                     <?php the_post(); ?>
  38.  
  39.                     <li><a
  40.                         <?php if ( $i == 0 ) : ?>
  41.                             class="first"
  42.                         <?php endif; ?>
  43.                         <?php $i++; ?>  
  44.                     href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array(151,151)  ); ?></a></li>
  45.  
  46.                 <?php endwhile; ?>
  47.  
  48.             </ul>
  49.  
  50.             <p class="more"><a href="/category/<?php echo $category->slug; ?>">More &raquo;</a></p>
  51.  
  52.         <?php endif; ?>
  53.  
  54.     <?php endforeach; ?>
  55.                     </div>
  56.                 </div>
  57.             </div>
  58.         </div>
  59.     </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement