Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Smile Wordpress blog post on homepage html

    Hello

    I have setup a blog on my web site and i want 5-10 recent blog post to be displayed on my site (static html) homepage in a seo friendly way

    I tried using BuzzBoost it works but I have found out that when you google text cached it doesn’t display the post

    For eg

    http://vandelaydesign.com/blog/tools...ers-buzzboost/


    Homepage http://vandelaydesign.com/

    Google cached
    http://209.85.175.104/search?q=cache...0IN270&strip=1

    This is what google sees

    Subscribe to RSS headline updates from:
    Powered by FeedBurner

    I read somewhere about using rss2html but I have no clue how to setup that

    Please help

    Thanks

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    What is the actual URL for your blog RSS feed?
    I think the URL I'm seeing on your site is for your main page? (not the blog)?

  • #3
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    sorry Mlseim that site was just an example my site is
    Rightcopywriter.com
    will look forwared to hearing from you

    Thanks

  • #4
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    I recently made success on doing this just yesterday. I used the script from 2rss.com. There's a good documentation which would help you.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • Users who have thanked rangana for this post:

    frenchtoast (06-17-2008)

  • #5
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    OK ...

    Below is a solution to displaying your own RSS feed on any of your
    other pages. First, the page in which it is displayed, needs to have
    the extension .php or use .htaccess to process all of your .html (.htm)
    pages as PHP.

    Put this script into your page, and you'll have to customize the
    output for styling (fonts, font sizes, etc). Change the echo part
    to reflect the proper styling for the output.

    PHP Code:
    <?php  
    // rss page from your blog -  
    $feed_url "http://www.rightcopywriter.com/blog/feed";  

    # INITIATE CURL. 
    $curl curl_init(); 

    # CURL SETTINGS. 
    curl_setopt($curlCURLOPT_URL,"$feed_url"); 
    curl_setopt($curlCURLOPT_RETURNTRANSFER1); 
    curl_setopt($curlCURLOPT_CONNECTTIMEOUT0); 

    # GRAB THE XML FILE. 
    $xmlTwitter curl_exec($curl); 

    curl_close($curl); 

    # SET UP XML OBJECT.
    # Depending on your PHP version, use one of the lines below.
    # Comment out the one you are not using.
    //$xml = new SimpleXMLElement($xmlTwitter);
    $xml simplexml_load_string($xmlTwitter); 

    // How many items to display 
    $count 5

    // How many characters from each item 
    // 0 (zero) will show them all. 
    $char 200

    foreach (
    $xml->channel->item as $item) { 
    if(
    $char == 0){ 
    $newstring $item->description

    else{ 
    $newstring substr($item->description0$char); 

    if(
    $count 0){ 
    //in case they have non-closed italics or bold, etc ... 
    echo"</i></b></u></a>\n"
    echo

    <div style='font-family:arial; font-size:.8em;'>  
    <b>{$item->title}</b><br />  
    $newstring ... <a href='{$item->guid}'>read more</a> 
    <br /><br /> 
    </div> 
    "
    ;  

    $count--; 
    }  
    ?>

  • Users who have thanked mlseim for this post:

    frenchtoast (06-17-2008)

  • #6
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks mlseim but I don't want to change the extension of my pages because I might lose search engine ranking

    is there any other way ?

    can you tell me how this site is display latest blog post on their site and if I can do the same ?

    Thanks

    Quote Originally Posted by mlseim View Post
    OK ...

    Below is a solution to displaying your own RSS feed on any of your
    other pages. First, the page in which it is displayed, needs to have
    the extension .php or use .htaccess to process all of your .html (.htm)
    pages as PHP.

    Put this script into your page, and you'll have to customize the
    output for styling (fonts, font sizes, etc). Change the echo part
    to reflect the proper styling for the output.

    PHP Code:
    <?php  
    // rss page from your blog -  
    $feed_url "http://www.rightcopywriter.com/blog/feed";  

    # INITIATE CURL. 
    $curl curl_init(); 

    # CURL SETTINGS. 
    curl_setopt($curlCURLOPT_URL,"$feed_url"); 
    curl_setopt($curlCURLOPT_RETURNTRANSFER1); 
    curl_setopt($curlCURLOPT_CONNECTTIMEOUT0); 

    # GRAB THE XML FILE. 
    $xmlTwitter curl_exec($curl); 

    curl_close($curl); 

    # SET UP XML OBJECT.
    # Depending on your PHP version, use one of the lines below.
    # Comment out the one you are not using.
    //$xml = new SimpleXMLElement($xmlTwitter);
    $xml simplexml_load_string($xmlTwitter); 

    // How many items to display 
    $count 5

    // How many characters from each item 
    // 0 (zero) will show them all. 
    $char 200

    foreach (
    $xml->channel->item as $item) { 
    if(
    $char == 0){ 
    $newstring $item->description

    else{ 
    $newstring substr($item->description0$char); 

    if(
    $count 0){ 
    //in case they have non-closed italics or bold, etc ... 
    echo"</i></b></u></a>\n"
    echo

    <div style='font-family:arial; font-size:.8em;'>  
    <b>{$item->title}</b><br />  
    $newstring ... <a href='{$item->guid}'>read more</a> 
    <br /><br /> 
    </div> 
    "
    ;  

    $count--; 
    }  
    ?>

  • #7
    Registered User
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks mlseim for your help.. that did the trick


  •  

    Posting Permissions

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