+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 12

Thread: Retrieve wordpress recent posts from external website

  1. #1
    GimmeDat is offline Coder GimmeDat will become famous soon enough GimmeDat will become famous soon enough
    Join Date
    Jan 2007
    Posts
    89

    Default Retrieve wordpress recent posts from external website

    Hello All, just looking for recommendations on which is the best way to parse the recent posts of a wordpress blog onto another non blog website?

  2. #2
    blacknight's Avatar
    blacknight is offline Web Slave blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    7,903

    Default

    Simplest solution would be to use RSS.

    There's plenty of ways of doing it. If you're lazy you could use feedburner, like I'm doing on Michele J. Neylon :: Web ramblings and more..

    OR you could use one of the many RSS libraries like Carp etc., etc.

    Up to you really

    Of course if you were using MovableType you could simply use a widget

  3. #3
    Forbairt's Avatar
    Forbairt is offline respect my AW-THOR-IT-AYY Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough
    Join Date
    Jun 2007
    Location
    My Office, Dublin
    Posts
    2,285

    Default

    this question was asked here as well (well how to setup an rss feed)

    http://www.irishwebmasterforum.com/c...rss-feeds.html

    I did my best to answer ... solution given was using magpie

  4. #4
    GimmeDat is offline Coder GimmeDat will become famous soon enough GimmeDat will become famous soon enough
    Join Date
    Jan 2007
    Posts
    89

    Default

    Thanks for suggestions, i tried this one

    Cut n' Paste JavaScript RSS Feed

    I like it as there is no branding.

  5. #5
    louie's Avatar
    louie is offline Senior Member louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,328

    Default

    if you own the blog you can just setup a db connection and pull the latest #? post from it.
    :. Web Design & Development Web Design Ireland
    :. Search Engines Optimization Search Engines Optimization
    :. Car Parts & Accessories Car Parts
    :. Cars Ireland Cars Ireland
    :. I Have 2 Find It Directory SEF Directory

  6. #6
    GimmeDat is offline Coder GimmeDat will become famous soon enough GimmeDat will become famous soon enough
    Join Date
    Jan 2007
    Posts
    89

    Default

    Yes i own the blog. Would that involve much work?

  7. #7
    Forbairt's Avatar
    Forbairt is offline respect my AW-THOR-IT-AYY Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough
    Join Date
    Jun 2007
    Location
    My Office, Dublin
    Posts
    2,285

    Default

    if you just want to pull the posts ... and so on ...

    about 15 minutes to half an hour

    to actually write the bit of code probably a minute ... to format it nicely and so on ... probably the rest of the time ...

  8. #8
    GimmeDat is offline Coder GimmeDat will become famous soon enough GimmeDat will become famous soon enough
    Join Date
    Jan 2007
    Posts
    89

    Default

    Thanks a mill. I'll give it a go.

  9. #9
    louie's Avatar
    louie is offline Senior Member louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough louie will become famous soon enough
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,328

    Default

    there is something I use myself
    PHP Code:
    $show_blog true;
    if(
    $show_blog){
    //replace HOST, USER, PASS, DB_NAME with your DB details
    $limit 10;
     
    $con mysql_connect(HOST,USER,PASS);
     if (!
    $con){ die('Could not connect: '); }
     
    // make foo the current db
     
    $db_selected mysql_select_db('DB_NAME'$con);
     if (!
    $db_selected) {
      die (
    'Can\'t use db : ');
     }
     echo 
    "<div class='left_tab'>Recent Posts...</div>
      <div class='left_menu'>
      <ul>"
    ;
     
    $sSql "SELECT `ID`,`post_title`, `wp_posts`.`guid` FROM `wp_posts` WHERE `wp_posts`.`post_status` =  'publish' 
     AND `wp_posts`.`post_type` =  'post' ORDER BY `wp_posts`.`post_date` DESC LIMIT 0, $limit"

     
    $rs_blog mysql_query($sSql,$con) or die("no connection");
     while(
    $row_blog mysql_fetch_array($rs_blog)){
      echo 
    "<li><a href='".$row_blog['guid']."' title='".
      
    htmlspecialchars(str_replace("'"," ",$row_blog['post_title']))."' target='_blank'>&bull; ".htmlspecialchars($row_blog['post_title'])."</a></li>"
     }
     
    mysql_free_result($rs_blog); 
     echo 
    "</ul>
     </div>"
    ;
     
    mysql_close($con);

    Last edited by louie; 10-01-2008 at 11:53 PM.
    :. Web Design & Development Web Design Ireland
    :. Search Engines Optimization Search Engines Optimization
    :. Car Parts & Accessories Car Parts
    :. Cars Ireland Cars Ireland
    :. I Have 2 Find It Directory SEF Directory

  10. #10
    Forbairt's Avatar
    Forbairt is offline respect my AW-THOR-IT-AYY Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough Forbairt will become famous soon enough
    Join Date
    Jun 2007
    Location
    My Office, Dublin
    Posts
    2,285

    Default

    Quote Originally Posted by GimmeDat View Post
    Thanks a mill. I'll give it a go.
    Or give it a louie post .. so to speak

    might end up re-using myself .. save me half an hour of work cheers louie

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Most recent posts plugin?
    By blacknight in forum Forum Management
    Replies: 7
    Last Post: 13-03-2007, 03:10 AM
  2. Need WordPress Plugin For Adding Images To Posts
    By Gavin in forum Blogs & Blogging
    Replies: 3
    Last Post: 04-11-2006, 02:43 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64