|
#1
|
|||
|
|||
|
Categories tag in RSS feed
As many of you might be aware that RSS search engines use the <category> tag for the items in RSS feed to classify/tag the items making them easier to find in tags/categories that *you* have specified. PP does not add this tag - to remedy this I hacked the following code into index.php -
Add just below line - $body = strip_tags( $body ); PHP Code:
However do note that it is not a good policy to hack index.php unless you realise all the risks and headaches involved (read you will have to redo all the changes in next upgrade) on second thoughts it would be good idea to add this code to the main distribution itself Devs?
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some] My Pixelpost Addons, Cheesecake-Photoblog Software |
|
#2
|
||||
|
||||
|
very good post, glad you put the warning in there
![]() if you're interested in syndication/tags with reference to pixelpost i may get in touch with you, i'm working on something you might be interested in. |
|
#3
|
|||
|
|||
|
@tinyblob - sure send me a message, I would be very interested to see what is being done...
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some] My Pixelpost Addons, Cheesecake-Photoblog Software |
|
#4
|
||||
|
||||
|
it will be part of the next main release.
thanks!
__________________
Affordable Website Design in North Wales |
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
yeah. what he said ^
__________________
Affordable Website Design in North Wales |
|
#7
|
|||
|
|||
|
Quote:
I've just implemented PP1.6 and thought I'd share an update to this original posting as I found this code really useful. If you use PP 1.6 the place to implement the modified code is in includes/function_feeds.php. I use feedburner for my RSS feed http://feeds.feedburner.com/AndrewsPhotoblog which uses an ATOM feed as a source and then wraps it up as RSS with frills. As such I had to modify the ATOM feed to include categories. The code is very similar except for ATOM categories the $$categories variable should be built up like this. Code:
$categories .="<category scheme='http://www.yoururl.com/atom/ns#' term='$category'/>"; Thanks for the original post and the code. Andrew http://www.andrewor.com |
|
#8
|
|||
|
|||
|
How can I insert tags? I mean which XML-Tag I need? "tag"?
|
|
#9
|
|||
|
|||
|
According to http://www.rssboard.org/rss-2-0#hrelementsOfLtitemgt is there no tag for "tag"
|
| Post Reply |
| Thread Tools | |
|
|