How XML Campaign Type works?

The XML Campaign Type of WPeMatico imports content from any XML file, not only from RSS feeds, and creates posts (or any post type) with it. You tell WPeMatico which element of the XML is the title, which one is the content, and so on.

1. Create the XML Campaign
Paste the URL and check the data.

  1. Go to WPeMatico β†’ Campaigns β†’ Add New and, in the Campaign Type box, choose XML Campaign Type.
  2. In the XML Campaign Type box, paste the address of the file in URL of XML.
  3. Click Check data. WPeMatico reads the file and lists its elements.

Note: Each campaign uses one XML URL. If the file is a regular RSS feed, WPeMatico tells you to use the Feed Fetcher campaign type instead.

2. Match the XML Elements
One element for each property of the post.

In the Properties table, choose in Elements of XML the node that holds each property: Post title, Post content, Post permalink, Post date and Post image.

Xml campaign type box with the url of xml and the xml elements matched to each post property

If the node you choose is not unique, or appears more than once in each item, use the Parent Element column to tell WPeMatico which parent it belongs to. The parent element must be the parent of the selected node and unique in each item.

Then set up the rest of the campaign as usual and save it.

Upload Your Own XML Files
To the Media Library.

WordPress doesn’t accept XML files in the Media Library by default. Turn on the Feeds XML card in WPeMatico β†’ Dashboard to allow it. Then upload the file and use its URL in the campaign.

Feeds xml card in the wpematico dashboard

Related FAQs