Viewing 1 replies (of 1 total)
  • Plugin Author C. Johnson

    (@radgeek)

    Hi Wayne!

    We’ve already discussed this at length in e-mail, but for the benefit of other people reading the forum — I wanted to quickly note that (1) this aspect of XPath syntax was not implemented in older versions of FeedWordPress; so in ye olden times 1 month ago there was no way to do this without some gnarly custom programming; BUT

    (2) Wayne very generously sponsored the development of this feature in the most recent release of FeedWordPress, Version 2016.0420; so now you are able to do this by downloading and installing the upgrade to the latest release.

    In order to get only the first result in your Custom Field, you would now use:

    $(media:content[1]/@url)

    In order to get only the second result in your Custom Field, you would now use:

    $(media:content[2]/@url)

    (Indexes now start at 1 rather than at 0, per the XPath specification.)

    HTH!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Fields – Choose First Result or Second Result?’ is closed to new replies.