I'm trying to get content from one category to show giving ten results can anyone help to get this working? I'm getting an error on line 3 : <?php global $post; $args = array( 'numberposts' => [10] 'category' => [uncategorised] ); $posts = get_posts() foreach($posts as $post){ setup_postdata($post);} ?> <div id="art-av"> <div id="av-side-l"> <div id="av"><?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?> </div> <div id="date-av"><?php the_time('F j, Y'); ?></div> <div id="com-av"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div> </div> <div id="av-side-r"> <div id="tit-av"><a href="<?php the_permalink() ?>" class="blue" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></div> <div id="dec-av"> <?php the_excerpt(); ?> </div> </div> </div> <?php endforeach; ?> Code (markup): I got it working but with a little problem it only seems to show one entry the code is below, any idea's? <?php global $post; $args = array( 'numberposts' => 5, 'offset'=> 1, 'category' => 1 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <div id="art-av"> <div id="av-side-l"> <div id="av"><?php if ( has_post_thumbnail() ) { /* loades the post's featured thumbnail, requires Wordpress 3.0+ */ echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; } ?> </div> <div id="date-av"><?php the_time('F j, Y'); ?></div> <div id="com-av"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div> </div> <div id="av-side-r"> <div id="tit-av"><a href="<?php the_permalink() ?>" class="blue" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></div> <div id="dec-av"> <?php the_excerpt(); ?> </div> </div> </div> <?php endforeach; ?> Code (markup):