I’m using this template code in an xml template to export EE blog entries into WordPress import format (other code before and after this block deleted for clarity):
{exp:comment:entries sort="desc" entry_id="{embed:entry_id}"}
<wp:comment>
<wp:comment_id>{comment_id}</wp:comment_id>
<wp:comment_author><![CDATA[{name}]]></wp:comment_author>
<wp:comment_author_email>{email}</wp:comment_author_email>
<wp:comment_author_url>{url}</wp:comment_author_url>
<wp:comment_author_IP>{ip_address}</wp:comment_author_IP>
<wp:comment_date>{comment_date format="%Y-%m-%d %h:%i:%s"}</wp:comment_date>
<wp:comment_date_gmt>{gmt_comment_date format="%Y-%m-%d %h:%i:%s"}</wp:comment_date_gmt>
<wp:comment_content><![CDATA[{comment}]]></wp:comment_content>
<wp:comment_approved>1</wp:comment_approved>
<wp:comment_type></wp:comment_type>
<wp:comment_parent>0</wp:comment_parent>
<wp:comment_user_id>0</wp:comment_user_id>
</wp:comment>
{/exp:comment:entries}
Everything works fine except for the email and url of the comments. They output as the admins email and admins URL and not the comment authors info. Dates output correctly, etc. But not IPs. But the email and url are the most important to fix, of course.
I have the template preferences set for no cache and php enabled, if it matters. Wrapping email and url in CDATA calls doesn’t help.
Any ideas?