How do I extract values from custom tags in feedzy

📝Note: This Premium feature is available only with the Developer and Agency plans. If you've already purchased one of the two plans you need to have both the Lite & Pro versions of the plugin activated for the feature to work.

The plugin imports fields such as title, content, and so on. What if you want to fetch a custom tag's value such as date updated or rating? This tutorial shows you how to do it.

Let's extract an XML file from where we need to extract values. 

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="" xmlns:media="" xmlns:yt="">
   <link rel="self" href="" />
   <link rel="alternate" href="" />
      <title>Nobel Prize Economics in 6 Minutes</title>
      <link rel="alternate" href="" />
         <media:title>Nobel Prize Economics in 6 Minutes</media:title>
         <media:content url="" type="application/x-shockwave-flash" width="640" height="390" />
         <media:thumbnail url="" width="480" height="360" />
         <media:description>Nobel Prize-winning economist Paul Romer explains how ideas translate into growth.

Episode 197</media:description>
            <media:starRating count="873" average="4.89" min="1" max="5" />
            <media:statistics views="20579" />

You can achieve it depending on how you are importing the posts:

🛠 Extract price using the shortcode

Follow the table below to understand how to provide the value of the mapping attribute of the shortcode:

Element/Attribute Value of 'mapping' attribute Extracted value
Feed level element
<title> price=feed|title L2inc
<yt:channelId> price=feed|yt:channelId UCBcRF18a7Qf58cCRy5xuWwQ
Item level element
(each item will correspond to one element, so we will assume this is the first item)
<updated> price=updated 2018-12-15T12:09:11+00:00
<media:title> price=media:title Nobel Prize Economics in 6 Minutes
<media:starRating> / average price=media:starRating@average 4.88


[feedzy-rss feeds="" price="yes" template="style1" mapping="price=pubDate"]
[feedzy-rss feeds="" price="yes" template="style1" mapping="price=feed|title"]

📝 Feed to Post

Follow the table below to understand the format of the magic tags that you can use.

Element/Attribute Tag Extracted value
Feed level element
<title> [#feed_custom_title] L2inc
<yt:channelId> [#feed_custom_yt:channelId] UCBcRF18a7Qf58cCRy5xuWwQ
Item level element
(each post will correspond to one element, so we will assume this is the first post)
<updated> [#item_custom_updated] 2018-12-15T12:09:11+00:00
<media:title> [#item_custom_media:title] Nobel Prize Economics in 6 Minutes
<media:starRating> / average [#item_custom_media:starRating@average] 4.88

Let's try to import the average rating field using the above table. We want to fetch this average rating:


Add a new import feed with the URL


Configure the filters of the feed to get the desired results.


In the Map Content area > Advanced Options, make sure you create a custom field as follows:

You can also add the tag [#item_custom_media:starRating@average] in the " Item Content" field in the General tab of the Map Content.


Output Where Item Content field is showing the Average rating:

It will create a new custom field named "Average Rating" and fetch the rating value in it.

📝 Note: Gutenberg/Block Editor doesn't have custom fields enabled by default. If you don't see the above screen, enable them by using these steps.

Extracting a subset of items or the Nth element only

In the following example, we'll use a source with multiple creators on each post( click to see the full source).

<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:dc="" xmlns:atom="" xmlns:content="" version="2.0">
    <title>RCIGM Publications</title>
    <description>RCIGM Publications: Latest results from PubMed</description>
    <atom:link href="" rel="self"/>
    <generator>PubMed RSS feeds (2.15.0)</generator>
    <lastBuildDate>Fri, 24 Sep 2021 13:40:53 +0000</lastBuildDate>
    <pubDate>Tue, 21 Sep 2021 06:00:00 -0400</pubDate>
      <title>Insights into the expanding phenotypic spectrum of inherited disorders of biogenic amines</title>
      <description>Inherited disorders of neurotransmitter metabolism are rare neurodevelopmental diseases presenting with movement disorders and global developmental delay. This study presents the results of the first standardized deep phenotyping approach and describes the clinical and biochemical presentation at disease onset as well as diagnostic approaches of 275 patients from the registry of the International Working Group on Neurotransmitter related Disorders. The results reveal an increased rate of...</description>
      <guid isPermaLink="false">pubmed:34545092</guid>
      <pubDate>Tue, 21 Sep 2021 06:00:00 -0400</pubDate>
      <dc:creator>Elijah H Bolin</dc:creator>
      <dc:creator>Yevgeniya Gokun</dc:creator>
      <dc:creator>Paul A Romitti</dc:creator>
      <dc:creator>Sarah C Tinker</dc:creator>
      <dc:creator>April D Summers</dc:creator>
      <dc:creator>Paula K Roberson</dc:creator>
      <dc:creator>Charlotte A Hobbs</dc:creator>
      <dc:creator>Sadia Malik</dc:creator>
      <dc:creator>Lorenzo D Botto</dc:creator>
      <dc:creator>Wendy N Nembhard</dc:creator>
      <dc:creator>National Birth Defects Prevention Study</dc:creator>

In the following examples, you can see how the magic tags were used in the import wizard and the output result.

The default case - the plugin will extract only the first item:

Elijah H Bolin

Example 1 - extracting only the third item

Paul A Romitti

Example 2 - extracting the second, fourth, and sixth items

Yevgeniya Gokun

Sarah C Tinker

Paula K Roberson
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.