Recents Posts PHP

Discussion in 'WordPress' started by bluemanteam, Feb 20, 2008.

  1. #1
    What is the snippet of php code that will allow me to show the recents wordpress posts on various parts of my blog without having to use a widget.

    I found some code through google, but it wasn't dated so I'm not sure if it is current. In any case, it broke my wordpress theme, so I'm hoping someone might have some current code they can provide.

    Thank you
     
    bluemanteam, Feb 20, 2008 IP
  2. seold

    seold Peon

    Messages:
    543
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <ul>
    	     <?php get_archives('postbypost', 10); ?>
    	     </ul>
    PHP:
    you can use this.
     
    seold, Feb 20, 2008 IP
  3. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's so much easier then the half page of functional code ( http://ianpurton.com/wordpress-recent-posts-plugin/ ) I just googled.

    Is there a url that lists all the snippets of code such as the above that will work with the latest version of Wordpress.
     
    bluemanteam, Feb 20, 2008 IP
  4. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Is there a way that I can use some type of code like this to place the morst recent posts on another page outside the Word Press script (but still on the same domain)?

    I have WP in a subfolder and would like to have the most recent posts presented on the websites main home page
     
    kentuckyslone, Feb 20, 2008 IP
  5. Crynos

    Crynos Peon

    Messages:
    733
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why not just get an rss script (there are a bunch out there) and use that?
     
    Crynos, Feb 20, 2008 IP
  6. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #6
    I thought sure there must be some sort of php code that would do it more simply, perhaps I was wrong
     
    kentuckyslone, Feb 20, 2008 IP