Share This

Home

Recent Articles

//This bit of code will loop through 5 recent articles covering all categories and post the_excerpt() – A 200 character clip from the post that excludes any html in from those first lines.
global $post;
//Getting Posts – More on this below
$gettingposts = get_posts(‘numberposts=5’);
//Starting the loop
foreach($gettingposts as $post) :
setup_postdata($post);
//Below is a custome output of a link setup
?>

//Display a clip from the post
the_excerpt();
//End the loop
endforeach;
?>

Newswire

//This bit of code will loop through 5 recent articles covering all categories and post the_excerpt() – A 200 character clip from the post that excludes any html in from those first lines.
global $post;
//Getting Posts – More on this below
$gettingposts = get_posts(‘numberposts=3&category=4’);
//Starting the loop
foreach($gettingposts as $post) :
setup_postdata($post);
//Below is a custome output of a link setup
?>

//Display a clip from the post
the_excerpt();
//End the loop
endforeach;
?>