tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

When WP All Import creates or updates post meta, check the meta value using Filters and update the post in WordPress

Each time WP All Import creates or updates a post meta value during an import, FlowMattic checks that the value isn’t empty and then updates that same WordPress post with the changes you set.

WP All Import Filter WordPress

3 steps Setup ~5 min Used on 3.5k sites Free to import

The When WP All Import creates or updates post meta, check the meta value using Filters and update the post in WordPress workflow on the FlowMattic canvas, with 3 steps across WP All Import, Filter, WordPress
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Imports rarely land exactly how you want them. A custom field arrives but the post title, status or another field should follow from it, and fixing posts by hand after every import run defeats the point of importing. This workflow reacts to the meta values WP All Import writes and updates the post they belong to.

The WP All Import trigger fires when an import creates or updates post meta. It passes the post ID and the meta value, among other data. Imports often write several meta fields per post, so one post can start several runs; check Task History after a small test import to see how many yours produce.

A Filter then lets the run continue only when the meta value is not empty. Runs for blank values stop there, so the post isn't touched for them.

The last step uses WordPress Update Post on the post that WP All Import just wrote to, identified by the post ID from the trigger. Everything else in that step is yours to set: map the meta value into the post field it should change, or set fixed values, such as a status. Test on a copy of your import file before running it on your full catalogue.

Publish products once a price is imported

A shop imports product posts as drafts and uses the meta value for price to switch each post to published once a non-empty price arrives.

Copy an imported field into the excerpt

A directory site imports a short summary as post meta and writes it into the post excerpt, so theme listings show it without template changes.

Clean up property listings after a feed import

An estate agent's nightly feed sets listing details as custom fields, and the workflow updates each listing post with the values the theme displays.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    WP All Import Create or Update Post Meta

    Fires each time WP All Import creates or updates a post meta value during an import. It passes the post ID and meta value, which the next steps use; a test import shows the other data it sends.

  2. Step 2Logic
    Filter Continue If Condition Meet

    Lets the run continue only when the imported meta value is not empty. Blank values stop the run here, so the post isn't updated for them.

  3. Step 3Action
    WordPress Update Post

    Updates the WordPress post WP All Import wrote to, using the post ID from the trigger. Only the post ID is set in the template, so map the fields you want changed, such as the title, excerpt or status.

What you need

  • FlowMatticCore
  • WP All Import PluginPlugin

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • If only one custom field matters, add a meta key condition to the existing Filter between the WP All Import trigger and Update Post, if a test import shows the key arrives. Otherwise every meta field with a value updates the post.
  • Run a small test import of two or three posts first, then read Task History to see how many runs each post produces before importing a large file.
  • Leave fields you don't want changed empty in the Update Post step, and check one updated post afterwards to confirm nothing else was overwritten.

Questions about this workflow

Why does one WP All Import post start several runs?

The trigger fires for post meta being created or updated, and an import often writes several meta fields to each post. If the trigger sends the meta key, check it in the Filter between the trigger and the Update Post step so only that field continues.

Which WordPress post does the Update Post step change?

The one WP All Import wrote the meta to. The template maps the post ID from the trigger into Update Post, so each run changes that same post.

What happens to meta values that come through empty?

The Filter stops those runs, so the WordPress post isn't updated. Only non-empty meta values reach the Update Post step.

Does this work for custom post types imported with WP All Import?

FlowMattic describes Update Post as updating an existing post of any post type, with custom fields, so it can change imported custom post types too. Test on one post first.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

Works within WordPress, so it can easily access any inbuilt WP functions or custom functions and use them in your flow. It's easy to use and already has many useful integrations built.

Gerard H.

It contains a lot of integrations and custom actions that allow you to easily integrate your WordPress with many 3rd party applications and automate your tasks