How to use Custom Fields?

With the Professional add-on, each post that a campaign creates can get custom fields (post meta) with values taken from the feed: the link to the original article, the name of the source, the author and more. Themes and other plugins can then show or use those values.

Enable the Feature
Once, in the Settings.

Go to WPeMatico β†’ Settings, open the Professional tab, turn on Enable “Custom Fields” feature and save the settings. This adds the Custom Fields box to every campaign.

Add the Fields in the Campaign
A name and a value for each one.

  1. Edit the campaign and go to the Custom Fields box.
  2. In Name, write the name of the custom field, for example source_url.
  3. In Value, write the value. You can use fixed text, the template tags, or both.
  4. Click Add more to add another field, and Update to save the campaign.

Custom fields box with example fields in a wpematico campaign

Tags You Can Use in the Value
The same ones as in the post template.

  • {title}, {content} and {itemcontent} β€” the title, the post content and the original description of the item.
  • {permalink} and {author} β€” the link and the author of the original item.
  • {image} β€” the URL of the featured image.
  • {feedurl}, {feedtitle}, {feeddescription}, {feedlogo} and {feedfavicon} β€” data of the feed.
  • {campaigntitle} and {campaignid} β€” data of the campaign.
  • {item_date} and {item_time} β€” the date and time of the item.

Note: You can also use the tags you create with Custom Feed Tags, to save in a custom field any other tag of the feed.

Related FAQs