1

I have a website and a google blogger site in conjunction. I would like to add a section to my website home page that displays the 3 or 4 most recent blog posts (post title and the first 100-200 words of the post).

Is there a widget that will do this or any suggestion on how to set this up?

Thanks!

Dave Bilodeau
  • 249
  • 1
  • 5
  • 13
  • "A widget"? Are you looking to write code for this, or just use some configurable component of the services you're using? If the latter, you might try webapps.stackexchange.com instead. If you're looking to write code for it, you'll need to give us more information. JavaScript only? (Might run into a same origin policy problem.) Server-side code? – David Apr 19 '12 at 01:55
  • Thanks for the response. I guess I was hoping someone could suggest the right method to get this task accomplished, either through code or widget. I know that word press has some easy widgets that will do this but I dont know if anything like that exists for blogger. Sorry I cant provide more details, I just dont know myself. – Dave Bilodeau Apr 19 '12 at 15:46
  • No PHP solution is here, you can find work around here: http://stackoverflow.com/questions/10943544/how-to-parse-an-rss-feed-using-javascript – Syed Sep 15 '16 at 16:51

3 Answers3

5

I found a really useful tutorial that does exactly what I want very easily. Inputs the post title, date/time of the entry, and the first 150 characters in the post. Very easy to set up. http://alt-web.blogspot.com/2011/06/adding-blogger-rss-feed-to-html-page.html Thanks!

Dave Bilodeau
  • 249
  • 1
  • 5
  • 13
0

I would suggest writing a short PHP script to print out the first 4 items from the RSS feed...

citruspi
  • 6,709
  • 4
  • 27
  • 43
0

Check out feedburner. https://feedburner.google.com/

Specifically, look at the BuzzBoost option under publicize. This allows you to embed javascript in your HTML that will generate HTML of your last few posts.

Sean
  • 2,632
  • 2
  • 27
  • 35