 |
|
Author |
Message |
nancy651
Joined: 15 Jan 2016
Posts: 2
|
Posted:
Fri Jan 15, 2016 10:21 am |
  |
I am trying to add the xml code to the sidebar of my site. I am using Wordpress and going through the editor for the primary sidebar - the code there is php. If I add the xml code I get a syntex error.
Right now I am using rssinclude (free trial) and you can get the code in php and it works (http://www.bestsellersworld.com) on the right you will see a feed from Amazon. I already have Feedforall and don't want to pay for another program but how do I get this to work on my site?
The xml code I have is:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Best Selling Books at Amazon</title>
<description>A list of the best selling books at Amazon.com.</description>
<link>http://www.amazon.com/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink?tag=productsgalore09</link>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<lastBuildDate>Fri, 15 Jan 2016 09:55:24 -0500</lastBuildDate>
<pubDate>Fri, 15 Jan 2016 09:53:06 -0500</pubDate>
<generator>FeedForAll v2.0 (2.0.2.9) http://www.feedforall.com</generator>
<item>
<title>Best Selling Books at Amazon</title>
<description>A list of best selling books at Amazon.com.</description>
<link>http://www.amazon.com/gp/rss/bestsellers/books/ref=zg_bs_books_rsslink?tag=productsgalore09</link>
<guid isPermaLink="false">B4F3BDCF-C6C7-4F15-94D6-375B621EAA67</guid>
<pubDate>Fri, 15 Jan 2016 09:52:33 -0500</pubDate>
</item>
</channel>
</rss> |
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2798
|
Posted:
Fri Jan 15, 2016 11:38 am |
  |
|
 |
 |
nancy651
Joined: 15 Jan 2016
Posts: 2
|
Posted:
Fri Jan 15, 2016 1:27 pm |
  |
Is there any other way to get the Feedforall code to show on the sidebar of Wordpress? |
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2798
|
Posted:
Fri Jan 15, 2016 1:52 pm |
  |
Since a Feed is RSS 2.0 formatted XML content, it depends on Wordpress. If Wordpress has a mechanism for displaying that XML content on a side bar through their site builder, you should be able to copy and paste the code from FFA's XML source (Under the Menu View - XML Source) in to it.
If the side bar is HTML, however, you'll need to translate the RSS Formatted XML content in to browser viewable HTML content by using our rss2html.php script or something similar, then feeding the output from that script in to the sidebar. |
_________________ Create RSS Feeds
Audio Recording and Editing |
|
 |
 |
poojayadav
Joined: 04 Apr 2016
Posts: 1
Location: france
|
Posted:
Mon Apr 04, 2016 11:22 pm |
  |
I wonder if I can get a sample XML syntax for adding a block or widget in the sidebar.
<!-- Mage_Catalog -->
<reference name="left">
<block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
<action method="setImgSrc"><src>images/sale-sidebar-left.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Our 24/7. Call us at.</alt></action>
<action method="setLinkUrl"><url>w.html</url></action>
</block>
</reference>
<reference name="right">
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
<action method="setImgSrc"><src>images/promote-sidebar-right.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open!</alt></action>
<action method="setLinkUrl"><url>blog</url></action>
</block>
</reference> [/url]http://www.appsmarche.com/[url][/url] |
|
|
  |
 |
|
| |