3 years-4 months
- Posted On :
- Posted by : Guley
$args = array( 'numberposts' => 10, 'category' => 6 );
$posts = get_posts( $args );
foreach( $posts as $post ): setup_postdata($post);
<divs with the_title() the_excerpt() etc ></div>
When answering a question please:
- Read the question carefully.
- Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
- If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.