Sign in to follow this  
Followers 0

Google Rss Feed Api On Page

2 posts in this topic

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=""></script>

<script type="text/javascript">

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

function initialize() {

var feed = new google.feeds.Feed("");

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?

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  
Followers 0

  • Similar Content

    • Create CustomRSS Feed Options/How-To
      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!
    • Feedwordpress page blank
      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?
    • How to Edit the RSS Feed
      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!
    • RSS Feed
      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.
    • RSS Feed Does Not Work
      By Claude203
      Could you please help me fix this? Thank you!
      I selected the News/Blog RSS Icon box in WhiteHousePro to display the RSS icon on pages and posts, however when I click the RSS icon it gives this error message:
      This XML file does not appear to have any style information associated with it. The document tree is shown below.
      Then it provides a bunch of html code as follows:
      <rss xmlns:content="" xmlns:wfw=""xmlns:dc="" xmlns:atom="" xmlns:sy=""xmlns:slash="" version="2.0"> <channel> <title>Black Fives</title> <atom:link href="" rel="self" type="application/rss+xml"/> <link></link> <description>Make History Now!</description> <lastBuildDate>Fri, 12 Apr 2013 13:34:11 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator></generator> <item> <title> Interview On CUNY-TV’s ‘African-American Legends’ Show with Dr. Roscoe C. Brown, Jr. (VIDEO) </title> ...