Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $catid = get_query_var('cat');
- $args = array(
- 'posts_per_page' => -1,
- 'category__in' => $catid,
- 'paged' => get_query_var('paged')
- );
- query_posts( $args );
- if (have_posts()) : ?>
- <ul>
- <?php while(have_posts()) : the_post(); ?>
- <li>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endwhile; endif; wp_reset_query(); ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement