Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="slides">
- <div class="slides_container">
- <?php query_posts($query_string . 'posts_per_page=5');
- $ids = array();
- while ( have_posts() ) : the_post(); ?>
- <div class="slide">
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
- <h1><?php the_title(); ?></h1>
- <p><?php the_excerpt(); ?></a></p>
- </div>
- <?php $ids[]= $post->ID;
- endwhile; ?>
- </div>
- </div>
- <section id="currentEvents">
- <h2 class="category"><?php wp_list_categories('include=7&title_li='); ?></h2>
- <?php global $post;
- $args = array( 'numberposts' => 5, 'category'=> 7, 'post__not_in' => $ids );
- $myposts = get_posts( $args );
- $postCount = 1;
- foreach( $myposts as $post ) : setup_postdata($post);
- ?>
- <?php if($postCount == 1) { ?>
- <div class="firstPost">
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
- <h4><?php the_title(); ?></h4></a>
- </div>
- <?php } else { ?>
- <div class="restOfPosts"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
- <h6><?php the_title(); ?></h6>
- </a>
- </div>
- <?php } ?>
- <?php $postCount++;
- endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement