Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Garrett Fisher 341 posts 496 karma points
    May 12, 2010 @ 19:23
    Garrett Fisher
    0

    displaying wordpress blog content

    Hi,

    Does anyone have any experience pulling Wordpress blog posts into an Umbraco site?  My client's site is maintained in Umbraco, but their blog is Wordpress.  I'd like to pull the latest few posts into the home page if that's possible.  I'm imagining that the XML is the key, though I've never done such a thing in Umbraco so I'm looking for some advice and/or code.

    Thanks in advance,

    Garrett

  • Donald St. Martin 83 posts 128 karma points
    May 12, 2010 @ 19:45
    Donald St. Martin
    0

    Garrett,

    I currently use Feed Cache to accomplish displaying posts from WordPress on my homepage in Umbraco.  I give it the RSS feed to my blog, save it as a .xml file and then display the posts via XSLT and a Macro.  Just like it says, it caches the feed!  If you need any help on getting the XSLT to work for it, let us know.

    --
    Donald

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    May 12, 2010 @ 19:54
    Hendy Racher
    1

    Hi Garrett,

    How about consuming the Wordpress rss feed from an XSLT macro using

    umbraco.library:GetXmlDocumentByUrl( $rssUrl )

    There's an article here on the WIKI with xslt to render an rss feed.

     

    That said, looks like the Feed Cache package does exactly what you need :)

     

  • Garrett Fisher 341 posts 496 karma points
    May 17, 2010 @ 18:47
    Garrett Fisher
    0

    Rock 'n' roll.  Feed Cache working great!  Issue though-- how do I display the value of the <link> tag in the Atom XML??  Here's my code (broken):

    <a href="<xsl:value-of select='Atom:link'/>"><xsl:value-of select="Atom:title" disable-output-escaping="yes"/> (<xsl:value-of select="umbraco.library:FormatDateTime(Atom:published, 'MMMM d, yyyy')"/>)</a>

    What's wrong with this picture?

    Thank,

    Garrett

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    May 17, 2010 @ 20:35
    Chriztian Steinmeier
    1

    Hi Garrett,

    You can't use value-of inside an attribute - what you need is an "Attribute Value Template" which is a fancy term for curly braces:

    <a href="{Atom:link}">
        <xsl:value-of select="Atom:title" disable-output-escaping="yes" />
        <xsl:value-of select="concat(' ', umbraco.library:FormatDateTime(Atom:published, 'MMMM d, yyyy'), ')')" />
    </a>

    /Chriztian

     

  • Avijit surai 1 post 21 karma points
    Nov 29, 2010 @ 05:56
    Avijit surai
    0

    Hello I want to display wordpress blog post in my site please provide me the codes

     

    Thnaks all the maestros of umbraco

Please Sign in or register to post replies

Write your reply to:

Draft