How to pull more content from a source?

When the content that the Full Content add-on gets is blank, wrong or incomplete, or when you want to add more parts of the source page to the post, you can tell the add-on exactly what to take with a config file for that domain.

1. Find the Element That Holds the Content
With the tools of your browser.

  1. Open an article of the source site in your browser.
  2. Right-click on a paragraph of the content you want and choose Inspect.
  3. Look at the element that contains the whole article, usually a <div> or an <article>, and write down its class or ID. For example: <div class="entry-content">.
2. Add It to the Config File
In the body line.

Go to WPeMatico β†’ Tools β†’ Full Content, open the config file of the domain, or create it with New, and write the element in the body: line using XPath:

body: //div[@class='entry-content']

To take more than one part of the page, join them with |. For example, the header image and the text of the article:

body: //div[@class='post-header-image'] | //div[@class='entry-content']

Config file with two parts joined in the body line in the full content tab of wpematico

3. Test It
Before running the campaign.

Click Test Url and paste the address of the article, or add it in a test_url: line, and click Preview to see the result. When it looks right, save the file. It works with all the posts that WPeMatico fetches from that domain.

If this is difficult for you, our premium support can create the config file for you.

Related FAQs