I use WordPress for several websites. I want to customize one of the RSS feeds and create a template for the outputted data but everytime I click on the feed link (myurl.com/feed) it takes me to a Google page to add it to my Google Reader. I use Google Reader and normally want everything else to default to that, but how can I override it this one time so I can see the raw xml/rss feed? Thanks.
相关问题
- Illegal to have multiple roots (start tag in epilo
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
相关文章
- wordpress新增页面如何个性化设置
- Creating XML Elements without namespace declaratio
- Encoding error while parsing RSS with lxml
- Get Attribute Value From Simple XML Using JQuery /
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Directly signing an Office Word document using XML
- Woocommerce update shipping methods in checkout vi
The best way to view raw RSS is with CURL over the command line. Browsers can alter the source (firefox in particular) when showing it to you so the best thing is to get it unfiltered from curl.
I used a combination of several different browsers to test how each RSS feed was displayed, then I customized my stylesheet based on the output.
Change the browser settings for your feed initially - you can change it back afterwards. Once done...
View the RSS feed, it will show you a pretty version. Then view the source code. You'll see the raw feed. No different browsers, no CURL, no WGET.
You can use a difference broswer, though most browsers will apply an xsl stylesheet to raw feed data by detecting that its a feed using the http response content type header. I know that Google Chrome shows some kind of raw data for rss feeds though its not exactly pure xml.
You can Use Fiddler to see the response. Or use some other http sniffer tool.
A solution that doesn't require using different browsers:
In Firefox preferences, select Applications and search for "Web Feeds." Changing the action to "Preview in Firefox" allows Firefox to load the feed itself, instead of google reader. It has a "gussied up" display of the feed in the browser, but you can also view the source to see the actual text of the feed.