Title: Help with xpath?
Last modified: August 31, 2016

---

# Help with xpath?

 *  [scottl31](https://wordpress.org/support/users/scottl31/)
 * (@scottl31)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/)
 * Don’t know anything about xpath. How do I know what to put in those fields?
 * [https://wordpress.org/plugins/feed-pull/](https://wordpress.org/plugins/feed-pull/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Jamie Edwards](https://wordpress.org/support/users/jamieedwards/)
 * (@jamieedwards)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082026)
 * Me too, I’ve tried a bunch of things from here – [http://www.w3schools.com/xsl/xpath_syntax.asp](http://www.w3schools.com/xsl/xpath_syntax.asp)
   but can’t get it to work.
 *  Thread Starter [scottl31](https://wordpress.org/support/users/scottl31/)
 * (@scottl31)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082027)
 * It must be something for each server, but how do you find it out?
 *  [Jamie Edwards](https://wordpress.org/support/users/jamieedwards/)
 * (@jamieedwards)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082030)
 * Hey Scott, I just got it working on my site. Here’s a screenshot of what I did–
   [Screen Shot](https://people.ok.ubc.ca/jamedwar/feed-pull.png)
 *  Thread Starter [scottl31](https://wordpress.org/support/users/scottl31/)
 * (@scottl31)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082031)
 * Ok, I’ll see if that works on my site. Thanks!
 *  Thread Starter [scottl31](https://wordpress.org/support/users/scottl31/)
 * (@scottl31)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082033)
 * How did you find out what to put in field mapping? With the title and guid ones,
   I just got the post title, no text, images or anything.
 * Then I added the other two you had and got this:
 * Warning : Xpath to source field returns nothing for content:encoded
 * But nothing else.
 * Any other help you can think of?
 * Thanks!
 *  [Jamie Edwards](https://wordpress.org/support/users/jamieedwards/)
 * (@jamieedwards)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082043)
 * I opened up my RSS feed in IE so that is shows me the source of the XML.
 *  Thread Starter [scottl31](https://wordpress.org/support/users/scottl31/)
 * (@scottl31)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082046)
 * If you do that, do you also have to open the source feed and match the items 
   you want?
 *  [Jamie Edwards](https://wordpress.org/support/users/jamieedwards/)
 * (@jamieedwards)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082053)
 * Try opening up your feed in **Google Chrome**, it should look something like 
   [this screenshot ](https://people.ok.ubc.ca/jamedwar/Screenshot_022416_011331_PM.jpg)
 * Have a look and see if you can see what your fields are called, then map them
   to the corresponding WordPress variable. Here is a reference from the codex on
   the different WP_Post member variables – [https://codex.wordpress.org/Class_Reference/WP_Post](https://codex.wordpress.org/Class_Reference/WP_Post)
 * Also, on my screenshot, I have a couple of little arrows pointing to channel 
   and item. Make sure those are in your XML/RSS feed. If they aren’t, or they are
   called something different, you’ll have to change that XPath to Posts setting
   so that it knows where in the structure of the document to find the individual
   posts.
 *  [Toni](https://wordpress.org/support/users/tools4toni/)
 * (@tools4toni)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082075)
 * This is mega helpful! Thanks Jamie for the screenshots and links to w3 and codex.
 * I am not having any luck at all here.
 *  [Jamie Edwards](https://wordpress.org/support/users/jamieedwards/)
 * (@jamieedwards)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082077)
 * Hi Toni,
    What is the URL of the feed you’re trying to use? I’ll have a look 
   and see if I can get it to work here.
 * Cheers,
    Jamie
 *  [kaygee5000](https://wordpress.org/support/users/kaygee5000/)
 * (@kaygee5000)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082081)
 * Thanks [@jamieedwards](https://wordpress.org/support/users/jamieedwards/).
 * Thanks for the links and the screenshots. It works as described.
 * Initially it looked like it wasn’t, so I clicked on “Update” to save the new 
   changes from the screen shots.
 * Then I went into the Feed Pull under Settings and deleted(assuming any worked
   in my trying times), changed the time interval to 10seconds(so that it comes
   
   faster).
 * After saving the settings I went back and Voila, the logs show some activity.
   Thanks [@jamieedwards](https://wordpress.org/support/users/jamieedwards/),
 *  [Toni](https://wordpress.org/support/users/tools4toni/)
 * (@tools4toni)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082083)
 * Wow! Thank you Jamie! I didn’t get it to work afterall.
 * (This page has a list of several RSS feeds. I want a few of them.
    [http://learningenglish.voanews.com/rsspage.aspx](http://learningenglish.voanews.com/rsspage.aspx))
 * This is the one of the ones I am trying to get:
    [http://learningenglish.voanews.com/api/ziqiqiejuiqm](http://learningenglish.voanews.com/api/ziqiqiejuiqm)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Help with xpath?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/feed-pull.svg)
 * [Feed Pull](https://wordpress.org/plugins/feed-pull/)
 * [Support Threads](https://wordpress.org/support/plugin/feed-pull/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-pull/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-pull/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-pull/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Toni](https://wordpress.org/support/users/tools4toni/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/help-with-xpath/#post-7082083)
 * Status: not resolved