Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [...]
- <?php }
- elseif (in_category(10)){ ?>
- <ul class="list">
- <?php
- $parentCatName = single_cat_title('',false);
- echo "\t" . '<h2><span class="categoria">'.$parentCatName.'</span></h2>'. "\n";
- $cat = get_term_by('name', single_cat_title('',false), 'category');
- //echo $cat->slug;
- query_posts('posts_per_page=8&order=ASC&child_of=10&category_name=' . $cat->slug . '');
- if (have_posts()) : while (have_posts()) : the_post();
- ?>
- <p>Conteúdo</p>
- <?php endwhile; ?>
- <div class="pagination-series">
- <?php pagination(); ?>
- </div> <!-- /pagination-tutoriais -->
- <?php endif;
- wp_reset_query();
- ?>
- </ul> <!-- /list -->
- <br />
- <br />
- <a class="button green" href="javascript:history.back(-1);" title="Voltar">Voltar</a>
- [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement