• Hello.

    First let me thank you for this great plugin. However I would like to see one feature.

    I run a WP Network for a sports club with multiple groups. Each sport have their own distinct site, but I syndicate all news to the main page. My “XPath to Posts” is set to “channel/item” however I want the author on the main page to be shown as “/channel/title”, so that users can more easily see which group has posted the content. However this data is on the XPath level above Channel/items. When I try to enter “/Channel/title” for post_author I get “Warning : Xpath to source field returns nothing for /channel/title”.

    Could you please implement some way of getting to parent content for some fields?

    https://www.ads-software.com/plugins/feed-pull/

Viewing 1 replies (of 1 total)
  • When you’re mapping xpaths to fields, assume that what you’ve entered in “Xpath to posts” above is being prepended to whatever you enter here. So the context you’re operating in is at the item level now rather than the feed level.

    But, you can go back up to the channel level with Xpath’s parent selector: “..”

    So if I understand your example, to get the channel title, you want to enter “../title” in the field. I’ve used this successfully in my own use of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request: Get author from XPath level above channel/items’ is closed to new replies.