WordPressのRSSをHTML形式にしてみた

add to hatena hatena.comment 0 user add to del.icio.us 0 user add to livedoor.clip 0 user

前のエントリでRSSを全文配信するように設定変更しました。
ところがlivedoor Readerで見てみると、HTMLタグが取り去られていて非常に読みにくい代物に。

reader.PNG

むしろ逆効果じゃーん。
なんとかしてみました。

WordPressインストールディレクトリ/wp-rss2.php

<content:encoded><![CDATA[<?php the_content_rss('', 0, '') ?>]]></content:encoded>

を、

<content:encoded><![CDATA[<?php the_content_rss('', 0, '', 0, 3) ?>]]></content:encoded>

と修正するだけ。
結果、以下のようになりました。

reader2.PNG

うーん、<br/>が消えてるみたいだなぁ・・・。まだ改良の余地はありそうです。

Leave a Reply