• I’m trying to pull in a feed from a WordPress blog. More specifically, a category feed within a WP blog. WordPress has the description automatically truncated, so I’d like to pull in the content:encoded which contains the whole post with the formatting (html). I imagine this is done using the data variable…

    For displaying any non-standard RSS fields, raw feed data can be retrieved using the “data” variable for example: {{data[‘child’][‘https://itunes.apple.com/rss’%5D%5B‘price’%5D%5B‘0’%5D%5B‘data’%5D}}. (Add the parameter show_data=”1″ in your shortcode to view the debug output of the raw feed data array)

    Unfortunately, I don’t really understand this format well enough to include it.

    My RSS feed is… https://www.shadesofthefuture.com/c/special-offers/feed/

    And as I said, I’m trying to pull the content:decoded info. I imagine this is something that lots of people will want to do, so some more detailed instructions would be awesome.

    Any help is appreciated.

    https://www.ads-software.com/extend/plugins/hungryfeed/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jason

    (@verysimple)

    You have to use the show_data=”1″ debug parameter which will show you what that actual data structure looks like, then you have to kinda hunt your way through that to see what that “path” is to the particular field you want. Once you find the correct path, then you remove the show_data parameter.

    In your case, I think this is what you want:

    {{data['child']['https://purl.org/rss/1.0/modules/content/']['encoded']['0']['data']}}

    since I think that element can have multiple parts, you may need to refer to [‘encoded’][‘1’], [‘encoded’][‘2’], etc.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: HungryFEED] Pull in content:encoded from RSS Feed’ is closed to new replies.