Jump to content
Sign in to follow this  

Google Rss Feed Api On Page

Recommended Posts


Maybe it's because I don't know enough of Pagelines or Wordpress, but I want to create a special page withe the Google Feed API. This is Google's documentation:



<script type="text/javascript" src="https://www.google.com/jsapi"></script>

<script type="text/javascript">

google.load("feeds", "1");

function initialize() {

var feed = new google.feeds.Feed("http://fastpshb.appspot.com/feed/1/fastpshb");

feed.load(function(result) {

if (!result.error) {

var container = document.getElementById("feed");

for (var i = 0; i < result.feed.entries.length; i++) {

var entry = result.feed.entries[i];

var div = document.createElement("div");











<div id="feed"></div>



Now, I just don't know where I put this code in, because Pagelines doesn't have pages (page-id.php) for every page. And if i look at the page-alpha, beta etc code, it doesn't look like I can put the code in there because the pages are build in teh setup_pagelines_template function.

Any help appreciated,


Share this post

Link to post
Share on other sites

This code requires that you create a new file and add this code in there. Have you tried looking for a WP plugin solution that creates a Google RSS Feed?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • brightonkeller
      By brightonkeller+
      HI there Pagelines Friends!
      I'm looking into creating a custom RSS feed for my blog and was wondering if you had any advice as to the best way to do this. I'm ALWAYS hesitant to modify the Functions.php file, so I wanted to see if you had run into this before and what you would suggest. 
      I found this article to be very helpful, but I wanted to see what you thought before diving in and actually trying to do this! Thanks so much for your time!
    • outtareach
      By outtareach
      I am trying to use feedwordpress to pull news to a postloop.  I have the loop on a page and the news is being pulled in but it is not displaying on the page, the page is blank.  Is there something special I should be doing to get the post to display?
    • bolharr2250
      By bolharr2250
      I'm wondering where I can get a better RSS button, and how do I edit the RSS button displayed in the mobile format!
      Thank You!
    • fpcas9431
      By fpcas9431
      Hello there: I've installed an RSS icon on my webpage, however I have completely forgotten how to set the 'image' of RSS icon to actually trigger the subscription/feed. Currently it links/goes to library image of icon...want it to trigger RSS sub..
      Can you help direct me.
      See: www.thetradinglab.com