Feeding into a website (ColdFusion)

  • Unknown's avatar

    I’m trying to get my WordPress blog to automatically update on my website using ColdFusion. I used to have a Blogger account and it all worked fine (using a cftry tag), but when I moved to WordPress, the code has stopped updating even though I updated feed URL. I am currently using my blog’s URL with “feed/atom/” and this works to post only the name of the first article, not the rest and the link to lead people back to the full article isn’t appearing.

    Is anyone able to help with this?

    The desired format is: “TITLE More…”, with the five latest posts appearing.

    Here’s the code I’m currently using:
    <cftry>
    <cfhttp url="http://eclecticbooks.wordpress.com/feed/atom/" method="GET" resolveurl="No" >
    </cfhttp>
    <cfset blog_xml=XMLParse(cfhttp.FileContent)>
    <cfoutput>
    <cfloop index="x" from="1" to="5">
    <p>#blog_xml.feed.entry[x].title.xmlText# More »</p>
    </cfloop>
    </cfoutput>
    <cfcatch>
    </cfcatch>
    </cftry>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi. Both your RSS and Atom feeds appear to be working properly, according to this tool.
    http://validator.w3.org/

    Have you tried with another RSS feed to see if it does the same thing? For example, try with the feed of this topic
    https://en.forums.wordpress.com/rss/topic/feeding-into-a-website-coldfusion

  • Unknown's avatar

    Oh. You had marked this as resolved. Nevermind what I said then. :-$

  • The topic ‘Feeding into a website (ColdFusion)’ is closed to new replies.