moding wordpress : how do you include the libraries to access the functions

Discussion in 'WordPress' started by pablo, Dec 9, 2006.

  1. #1
    Hi,

    I am trying to include some of the wordpress info into my main page (it's included in a sub directory). And I wanted to do it via an include/require and I was wondering what file/files I need to include so I can access the functions like
    get_archives
    PHP:
    I am trying to do something like this http://wiki.wordpress.org/Recent Posts in case anyone is interested. Getting the last 5 posts onto a non blog page and not using RSS.

    thanks,
    p

    EDIT : got this to do the trick. Needs to be added at the head of the file... Silly me

    <?php require_once("./blog/wp-blog-header.php"); ?>
    PHP:
    For other peoples reference.
     
    pablo, Dec 9, 2006 IP