How to increase Wordpress Recent Posts from 15 to More?

Discussion in 'WordPress' started by Bohol, Aug 22, 2009.

  1. #1
    I'd like to know. The maximum number of post, as we all know, is only 15. Is there a way to make it, say, 50?
     
    Bohol, Aug 22, 2009 IP
  2. begadang

    begadang Peon

    Messages:
    159
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, you can do it. Do not use widget.

    Use Theme Editor >> Sidebar.php

    Edit or check this code
    
          <h2>Recents Posts</h2>
                <ul>
    		<?php get_archives('postbypost', [B]50[/B]); ?>
    	 </ul>
    
    Code (markup):
     
    begadang, Aug 22, 2009 IP
  3. aap

    aap Well-Known Member

    Messages:
    1,802
    Likes Received:
    39
    Best Answers:
    2
    Trophy Points:
    120
    #3
    aap, Aug 22, 2009 IP
  4. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks begadang. I have a question: how to configure WP so that each recent post, when it is clicked, will jump to a new browser?
     
    Bohol, Aug 22, 2009 IP
  5. begadang

    begadang Peon

    Messages:
    159
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't sure it will works. But you can try it:

    Edit your archive file (archive.php) add target=_blank on this code:
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    Code (markup):
    After adding code:
    <a href="<?php the_permalink() ?>" rel="bookmark" target="_blank"><?php the_title(); ?></a>
    Code (markup):
     
    begadang, Aug 22, 2009 IP
  6. navjotjsingh

    navjotjsingh Well-Known Member

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #6
    Don't use get_archives as its deprecated. Use wp_get_archives instead here.
     
    navjotjsingh, Aug 22, 2009 IP
  7. bizheri

    bizheri Greenhorn

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #7
    thanks for the tips guys, it's also helpful for me :)
     
    bizheri, Aug 23, 2009 IP
  8. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I instead edited default_widgets.php and I got what I wanted to happen just like this news blog site here.
     
    Bohol, Aug 25, 2009 IP