I'm using Feedwordpress which is a fantastic plugin to pull in jobs from a job board. The location information for each job is located within a comment, and looks like this:
<item> <title> <description> <!-- Comment #1 --> <!-- ABC Location=Vancouver --> </description> </item>
Feedwordpress uses "XPath-like syntax" to access data elements from the feed to map to custom fields. For example I map title using $(title) and that works. I'm trying to access the location information using
$(description/comment()) but this results in the custom field remaining empty. Unfortunately there is not much documentation for this plugin and the plugin website has a lot of questions but no one is answering them, so I've come here :).
Is my code to access the second comment wrong?
If not, is there another method I could try?
Does anyone know if feedwordpress allows you to access comments to map to custom fields?
If anyone can point me in the right direction I would very much appreciate it!