ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

{email} and {url} returning admin's info, not comment author's info

September 09, 2013 4:20pm

Subscribe [1]
  • #1 / Sep 09, 2013 4:20pm

    songdogtech

    10 posts

    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?

     

  • #2 / Sep 09, 2013 6:14pm

    Chriiiiso

    46 posts

    Just replying since you haven’t had any help yet, but make sure you’re not putting exp:comment:entries tags inside of exp:channel:entries tags.  I imagine you aren’t, but just an idea.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases