Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="main_area">
- <?php if (have_posts()) : ?>
- <?php if ( is_category('abcd')) { ?>
- <h2><img src="<?php bloginfo('stylesheet_directory'); ?>/images/XXXX.png" alt="XXXX" /></h2>
- <?php query_posts($query_string .'&posts_per_page=5'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <ul id="news_list">
- <?php if ( post_custom('url')!="" && post_custom('url')!="#") { ?>
- <li><span><?php the_time('Y.m.d'); ?></span><br /><a href="<?php echo post_custom('url'); ?>" target="<?php echo post_custom('target'); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></li>
- <? } else { ?>
- <li><span><?php the_time('Y.m.d'); ?></span><br /><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></li>
- <? } //END if ?>
- </ul>
- <?php endwhile; ?>
- <div class="navlink">
- <?php posts_nav_link(' ','«','»');?>
- </div>
- <?php } ?>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement