( Zaloguj | Zarejestruj )
![]() ![]() |
27.2.2008 - 19:23
Post
#1
|
|
![]() aktywność: ![]() ![]() Grupa: +Bloger Postów: 94 Nr: 2 711 |
Mam taki kodzik, który pokazuje posty z wybranej kategorii.
<?php $lastposts = get_posts('category=1'); foreach($lastposts as $post) : setup_postdata($post); ?> <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a> jak niezależnie od ustawień w panelu admina ustawić ilość wyświetlanych postów? |
|
|
|
27.2.2008 - 19:42
Post
#2
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() Grupa: V.I.P. Postów: 856 Nr: 2 641 |
A próbowałeś dopisać argument to get_posts? Coś jak: ... get_posts('category=1&numberposts=5'); ... ?
Kasia -------------------- Curiosity killed the cat, but satisfaction brought her back.
|
|
|
|
27.2.2008 - 20:02
Post
#3
|
|
![]() aktywność: ![]() ![]() Grupa: +Bloger Postów: 94 Nr: 2 711 |
Dziękuję Kasiu!! Działa!!
Jesteś boska!! |
|
|
|
![]() ![]() |
| : 23 05 12 - 16:53 |