This link has been bookmarked by 104 people . It was first bookmarked on 07 Feb 2008, by xarjxarj.
-
17 Jun 14
-
12 Mar 14
-
<?php $args = array( 'posts_per_page' => 5, 'offset' => 0, 'category' => '', 'orderby' => 'post_date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'post', 'post_mime_type' => '',
-
-
01 Dec 13
-
15 Oct 13
-
07 Aug 13
-
14 Jun 12
-
12 Mar 12
-
09 Mar 12
-
Access all post data
-
Access all post data
-
The category parameter needs to be the ID of the category
-
your blog configured to show just one post on the front page, but also want to list links to the previous five posts in category ID 1
-
Access all post data
-
Access all post dat
-
-
15 Feb 12
-
10 Feb 12
-
30 Jan 12
-
<?php $args = array(
'numberposts' => 5,
'offset' => 0,
'category' => ,
'orderby' => 'post_date',
'order' => 'DESC',
'include' => ,
'exclude' => ,
'meta_key' => ,
'meta_value' => ,
'post_type' => 'post',
'post_mime_type' => ,
'post_parent' => ,
'post_status' => 'publish' ); ?>
-
-
02 Nov 11
-
18 Sep 11
-
04 Aug 11
-
17 Jun 11
-
08 Jun 11
-
09 Mar 11
-
02 Feb 11
Hans MestrumThis is a simple function for creating multiple loops. It retrieves a list of latest posts or posts matching criteria.
-
28 Jan 11
-
05 Jan 11
-
19 Oct 10
-
02 Sep 10
-
27 Jul 10
-
<ul> <?php global $post; $myposts = get_posts('numberposts=5&offset=1&category=1'); foreach($myposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>
-
-
26 May 10
-
07 Apr 10
Charles GnilkaIf you have your blog configured to show just one post on the front page, but also want to list links to the previous five posts in category ID 1, you can use this:
-
23 Mar 10
-
07 Mar 10
-
06 Feb 10
-
28 Jan 10
-
13 Jan 10
-
12 Nov 09
-
04 Nov 09
-
27 Oct 09
-
03 Jun 09
-
05 Apr 09
-
01 Apr 09
-
18 Mar 09
-
13 Mar 09
-
15 Dec 08
-
06 Oct 08
-
22 Aug 08
-
05 May 08
-
<ul> <?php global $post; $myposts = get_posts('numberposts=5&offset=1&category=1'); foreach($myposts as $post) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>
-
-
07 Feb 08
-
07 Nov 07
-
29 May 07
-
09 Apr 07
Andre MalheiroThis is a simple tag for creating multiple loops.
-
06 Mar 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.