Limit the amount of latest post
-
Hi all
I’m uisng the theme HostingPlatino on my word press, HostingPlatino has a frame.php that loads in the front page, its shows latest post and latest links
I worked out how to limit the number of links shown by using smooth-scrolling-links-ssl plugin, to which it works great.
How can I limit the number of lastest post shown in the frame.php, is this set to show 10 only? or will it grow to a long list ?
<?php $my_query = new WP_Query('showposts=10'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); $shorttitle = substr(the_title('','',FALSE),0,39); ?> <li><a title="<?php echo the_title() ?>" href="<?php the_permalink() ?>">
Question what does FALSE),0,39); Mean ?
Hope someone can shed some light please
TT
`
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Limit the amount of latest post’ is closed to new replies.