WordPress.org

Ready to get started?Download WordPress

Forums

recent post (2 posts)

  1. farrokhiran
    Member
    Posted 7 years ago #

    hi,
    is it possible to have recent post with a short body text in another page?! i mean out of wp directory.
    thanx

  2. tsguitar
    Member
    Posted 7 years ago #

    This is covered all over the place. Did you search the forum or even Google before you posted?
    http://wordpress.org/support/topic/110780?replies=6#post-534119

    Essentially, just put this at the top of any page outside of WordPress:

    <?php
    /* Short and sweet */
    require('../wp-blog-header.php');
    ?>

    And now that page is hooked into WordPress. You can call to any WordPress functions and display whatever you want. And if you try this:
    http://ifelse.co.uk/archives/2005/04/10/make-wp-show-only-one-post-on-the-front-page/

    it should only show the latest post. Or you can try a plugin:
    http://girasoli.org/?p=26

    And I use Limit Posts to control how many characters from each post are displayed:
    http://labitacora.net/comunBlog/limit-post.phps

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.