Forums

[Plugin: FeedWordPress] Custom Posts Settings (4 posts)

  1. geeac
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to use XPath-like syntax for the custom post settings, but it doesn't seem to work. This is the feed http://feeds.feedburner.com/CannelleEtVanille and I'm trying to get thumbnails' urls using $(media:thumbnail/@url) I've tried different versions:
    $(media:thumbnail@url)
    $(media:thumbnail[@url])
    ${media:thumbnail@url}
    and nothing seems to work. If I only put $(media:thumbnail), than I get an empty custom field, with the other versions with an attribute, it doesn't even save the custom field name.

    Any ideas?

    http://wordpress.org/extend/plugins/feedwordpress/

  2. toyNN
    Member
    Posted 1 year ago #

    Sorry no help just that I've got similar problem. Tags in the feed like:
    <media:thumbnail url="....." />
    <media:pubDate>Wed, 18 Aug 2010 17:30:00 GMT</media:pubDate>

    As per examples used x-path like syntax to reference them but not working,
    $(media:pubDate)
    $(media:thumbnail/@url)

    But one that did work was for the tag I figured won't work,
    <media:player ....>{html code for embedding player}</media:player>
    the $(media:player) referenced the tag and stored all the html code into a custom field.

    I'll keep poking it and will post back if I find a solution.

  3. seldomstatic
    Member
    Posted 1 year ago #

    I have managed to pull in some top level RSS items such as title and pubDate using $(title) and $(pubDate) as custom field values but no luck yet pulling sub items.

  4. toyNN
    Member
    Posted 1 year ago #

    I am able to use the Custom Fields successfully for tags,
    <media:player>
    <media:keywords>

    and get these imported as part of the posts.

    A bit of a hunch but what I think is happening for other tags is that if the tag isn't part of the namespace of the feed's header, that is they are undefined custom tags, then FeedWordPress doesn't seem to be able to recognize or find them in the feed. The code for Simplepie/Maggpie the FeedWordPress uses seems to support this notion (but its a lot of code to sift through).

    Check your feed's head for the namespace and then browse to it to get its tag definitions. Tags not part of standard RSS 2.0 or in the defined namespace might not be accessible.

    The plugin's author would have to confirm this behavior.

Topic Closed

This topic has been closed to new replies.

About this Topic