Advertisement
wallaceerick

Loop

Apr 13th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.12 KB | None | 0 0
  1. [...]    
  2.     <?php  }
  3.               elseif (in_category(10)){ ?>
  4.                   <ul class="list">
  5.                     <?php
  6.                       $parentCatName = single_cat_title('',false);
  7.                       echo "\t" . '<h2><span class="categoria">'.$parentCatName.'</span></h2>'. "\n";
  8.                       $cat = get_term_by('name', single_cat_title('',false), 'category');
  9.                       //echo $cat->slug;
  10.                       query_posts('posts_per_page=8&order=ASC&child_of=10&category_name=' . $cat->slug . '');
  11.                       if (have_posts()) : while (have_posts()) : the_post();
  12.                     ?>
  13.                     <p>Conteúdo</p>
  14.                     <?php endwhile; ?>
  15.                       <div class="pagination-series">
  16.             <?php pagination(); ?>
  17.               </div> <!-- /pagination-tutoriais -->
  18.                      <?php endif;
  19.                       wp_reset_query();
  20.                      ?>
  21.                 </ul> <!-- /list -->
  22.                 <br />
  23.                 <br />
  24.                 <a class="button green" href="javascript:history.back(-1);" title="Voltar">Voltar</a>
  25. [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement