Putting WP recent comments on a static Page?

Discussion in 'WordPress' started by pratik, May 3, 2007.

  1. #1
    hi there,

    Well I have a blog running on one of my sites.. where in the blog is running at www.mydomain.com/blog ... and at the homepage of my domain, that is, www.mydomain.com .. there is a static html page...

    so is there a way that i can insert a recent comments box (of my blog) on my static html page, that is, the homepage....???

    I am using WordPress for blogging....

    thanks in advance...
     
    pratik, May 3, 2007 IP
  2. mooiness

    mooiness Peon

    Messages:
    409
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It doesn't sound possible as the static HTML does not even call the Wordpress loop. Unless you have a fancy bit of PHP trickery to do so. ;)

    Maybe the Wordpress help forums may be of better help.
     
    mooiness, May 3, 2007 IP
    pratik likes this.
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    I use wpget for this.

    I call wpget like this:
    <?php
    include_once("/usr/local/www/data/fortliberty.org/wpget.php");
    $wpget = new wpGet;
    #$wpget->dateformat = "d/m/Y \\a\\\\t H:i";
    $wpget->showcredit = false;
    $wpget->getWordpressEntries(10, 200, true, true, true);
    ?>
    Code (markup):
     
    Will.Spencer, May 3, 2007 IP
  4. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #4
    thanks this really sounds helpfull... also checked the site and will think i will work for sure..

    thanks again...
     
    pratik, May 3, 2007 IP
  5. SpringCypress

    SpringCypress Well-Known Member

    Messages:
    316
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #5
    you could also just put a rss feed of your comments onto the static page.
     
    SpringCypress, May 3, 2007 IP