Viewing 12 replies - 1 through 12 (of 12 total)
  • Me too, I’ve tried a bunch of things from here – http://www.w3schools.com/xsl/xpath_syntax.asp but can’t get it to work.

    Thread Starter scottl31

    (@scottl31)

    It must be something for each server, but how do you find it out?

    Hey Scott, I just got it working on my site. Here’s a screenshot of what I did – Screen Shot

    Thread Starter scottl31

    (@scottl31)

    Ok, I’ll see if that works on my site. Thanks!

    Thread Starter scottl31

    (@scottl31)

    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!

    I opened up my RSS feed in IE so that is shows me the source of the XML.

    Thread Starter scottl31

    (@scottl31)

    If you do that, do you also have to open the source feed and match the items you want?

    Try opening up your feed in Google Chrome, it should look something like this screenshot

    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

    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

    (@tools4toni)

    This is mega helpful! Thanks Jamie for the screenshots and links to w3 and codex.

    I am not having any luck at all here.

    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

    Thanks @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,

    Toni

    (@tools4toni)

    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)

    This is the one of the ones I am trying to get:
    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.