Migration tool

Migration Tool

Move from Search & Filter Pro v2 to Search & Filter v3

  • Four guided steps: check, migrate, review and finish.
  • Nothing changes until you say so. The first step is a dry run.
  • Changed your mind? Switch back to v2 at any time until you finish.

Search & Filter Migration

For Search & Filter Pro 2.5.x

How It Works

The migration tool moves your site from Search & Filter Pro v2 to Search & Filter v3 in one go. It installs the new version, copies each search form into a query with the same fields, and points your pages at it.

It never edits your theme files or custom code. If something there needs changing, it tells you which file and line.

Note: It doesn’t migrate the free Search & Filter 1.x plugin yet, and it doesn’t work on multisite.

Before You Start

Already backed up, and checked the requirements? Skip ahead.

Back up your site
Database and files, including wp-content. The tool backs up only the pages it updates.

Try it on staging first
Then run it on your live site. Your license must be active for each site.

Pick a quiet time
Search forms are unavailable while it runs, usually under a minute.

Requirements

RequiresWhat you need
WordPress6.8 or later
PHP7.4 or later
Search & Filter Pro v22.5.21
LicenseYour Search & Filter Pro key, entered in Pro v2 and active for this site
Search & Filter v3Only if it’s already installed: 3.3.1 or later
SiteA single site, not multisite
Your accountAdministrator
ServerWordPress can install plugins without asking for FTP details, and can reach license.searchandfilter.com

Step 1 checks all of this for you, before anything changes.

Using WPML, Polylang, Easy Digital Downloads, ACF or Relevanssi?

Keep the plugin active before you start, so the tool can carry its setup over:

PluginWhat the tool needs
WPMLWPML 4.6.15 or later with String Translation active, and a writable wp-content/languages folder. The tool installs the WPML extension.
PolylangPolylang 3.8.0 or later. The tool installs the Polylang extension.
Easy Digital Downloads3.6.0 or later. The tool installs the EDD extension.
ACF, RelevanssiThe plugin active. The tool switches on its integration.

Migrate in 4 Steps

Install and activate the Search & Filter Migration plugin, then go to Tools → Search & Filter Migration. The screen shows four steps across the top:

1
Check

2
Migrate

3
Review

4
Finish

Step 1: Check

Click Start the check. The check changes nothing on your site.

Step 1 of 4, Check your site, with the Start the check button
Step 1: the check lists what it looks at, and changes nothing.

When it passes, the screen moves on to Migrate. Click Show to see what the check found, and read What works differently in Search & Filter v3: anything under Needs a step by hand needs you after the migration.

If something stops the migration, the check says what needs fixing, and Migrate waits. Fix it (see Troubleshooting), then click Check again.

Step 2: Migrate

Migrate lists everything the migration will do, in order. Then:

Step 2 of 4, Migrate to Search & Filter v3, with the list of what the migration will do and the backup tick box
Step 2: one confirmation lists everything the migration will do.
  • Tick I’ve backed up my site.
  • Click Migrate to Search & Filter v3.

It runs in one go and usually takes less than a minute. Keep the page open until it finishes.

The migration running, with each part ticking off
The migration runs in one go. Keep the page open until it finishes.

Each page, post and widget that uses a v2 form is backed up first, then pointed at its new query. For Elementor pages, it installs or activates the Search & Filter Elementor extension first.

Want to look at your new queries before your pages change? Tick Stop before updating my pages. The migration converts your forms, then waits for you. When you’re ready, click Back up and update my pages. Until then, visitors see nothing where a form was, and page builder modules don’t filter their results.

Using a page cache or CDN? Purge it, so visitors see the updated pages.

If a part of the migration fails, the screen says where it stopped and what to do. See Troubleshooting.

Step 3: Review

Review opens when the migration is done. It lists what’s left, grouped by who does it, and checks your theme and plugins on its own. You can come back to this list.

Step 3 of 4, Review your site, with Forms that need a step by hand and Mark as done
Step 3: Review lists what’s left, grouped by who does it.

Do each step by hand and click Mark as done, then check your site. When everything works, tick I’ve checked my site, and search and filtering work as I expect. and click My site works: go to Finish.

Step 4: Finish

Finish deletes Search & Filter Pro v2. Your site keeps running on Search & Filter v3.

Step 4 of 4, Finish the migration, with the tick boxes and the Finish and delete button
Step 4: Finish deletes Search & Filter Pro v2.
  1. Optionally, tick Also delete Search & Filter Pro v2’s data: its forms, settings and tables, and your page backups. Your v3 queries are always kept.
  2. Tick I understand that once Search & Filter Pro v2 is deleted, this tool can’t switch my site back to it.
  3. Click Finish and delete Search & Filter Pro v2.

If you kept v2’s data, Finish then offers Clean up Search & Filter Pro v2’s data. It deletes your page backups too, so your pages can’t be restored afterwards.

What Gets Migrated

In Search & Filter Pro v2Becomes in Search & Filter v3
Search formA query with its fields, in the same order
Search, category, tag, taxonomy, post type and author fieldsSearch and choice fields: dropdown, multi-select, checkboxes or radio
Date and custom field number fieldsDate pickers and range fields
Sort order, results per page, submit and resetSort, Per Page, Submit and Reset controls
Form settings and conditionsThe query’s settings
Ajax, pagination and auto submitLive Search, pagination and each field’s auto submit
Results on a shortcode page, post type archive or WooCommerce shopThe query’s location
Results shown as an Archive (v2’s default)The Legacy v2 Archive location: same address and template while the migration tool is active. Move them to a page.
Elementor Posts, Portfolio, Products and Loop Grid widgetsThe Elementor integration, set up for you
in posts, pages, blocks and widgets, after a backup
WPML and Polylang translationsTranslated queries
Your licenseThe same key, connected to Search & Filter v3

What Needs a Step by Hand

Review (step 3) lists each of these for the forms they affect, with a guide and Mark as done.

  • Fields that aren’t converted, e.g. custom field choices with options entered by hand. Add them in Search & Filter → Queries.
  • Results shown as Custom. Change search_filter_id to search_filter_query_id with the new query’s ID. The guide Change your code shows both IDs.
  • Results shown by Beaver Builder, Divi or WPBakery. These need the builder’s Search & Filter extension, updated for v3. When your pages use Beaver Builder or Divi, the tool installs their extension, or tells you which one to update. For WPBakery, install or update its extension, turn on the WPBakery integration in Search & Filter, then select the new query in the element.
  • Results shown by Custom Layouts or Dynamic Content for Elementor. Select the new query in that plugin’s settings. Custom Layouts needs version 1.5.0 or later.
  • v2 shortcodes in theme files. Change each one by hand. The tool lists the file, line and the shortcode to use instead.

What Works Differently

The check (step 1) and Review (step 3) list each difference that affects your forms. Most are changes to know about, and the ones marked Needs a step by hand need you.

Review step, For your information: the What works differently list, with each difference, how many forms it affects, and a Needs a step by hand label
Review lists each difference and how many forms it affects.
Links to filtered results

Some filters use new names in the URL. The tool keeps a v2 URL parameter wherever Search & Filter v3 can read it, so bookmarks keep working:

v2 parameterStill works?
_sf_s (search) and _sf_ppp (results per page)Yes
_sft_category etc. with one term, or terms joined with ,Yes
_sfm_ custom fields with one valueYes
Terms joined with +, several custom field values, ranges, dates, post_date, sort_orderNo
post_types and authorsOnly if Pro’s URL prefix setting is empty

For the ones that don’t work, update links you control, e.g. in menus or emails, by running a fresh search on the migrated page and copying its URL.

Fields that work differently
  • Reset links become buttons, and reset also submits the search.
  • Sort and results-per-page radio buttons become dropdowns.
  • Choosing a category or term also finds posts in its child terms.
  • Date ranges have one input, with no text before or after it.
  • Authors show their display name, and choosing several finds posts by any of them.
  • ACF choice fields show their stored values, not their labels.
  • Number ranges shown as checkboxes become From and To dropdowns.
  • Date ranges on custom fields, and dates stored as timestamps, need Pro’s Indexer on in Search & Filter → Settings. Turn it on, then click Convert your forms again.
Settings that work differently
  • Force is_search and Force is_archive are kept only while a query has the Legacy v2 Archive location. A query’s location sets where it runs.
  • Counts need Pro’s Indexer, and update with the results. After the conversion, they show properly once the indexer has finished rebuilding.
  • With Relevanssi, Relevanssi orders the search results.
  • Scrolling after new results uses the query’s Scroll To setting.
  • Conditions Search & Filter v3 can’t express are left out and listed.

Compatibility Mode

After the migration, the tool stays active and keeps some v2 behaviour working, e.g. v2 shortcodes in theme files, v2 hooks in custom code, sf_paged links and Search & Filter Form widgets, and v2 results pages shown as an Archive (see Move v2 archive results to a page). While your site relies on any of this, it’s in compatibility mode, and you see a notice with See what to change.

The compatibility mode notice on the Dashboard with See what to change, and the compatibility mode list showing a v2 shortcode found in a theme file, its file and line, and Check again
The Dashboard notice links to the list of what to change.
  1. Make the change each item in the list describes.
  2. Click Check again. The tool also checks each day.
  3. When the list is empty, the notice goes, and you can delete the migration tool.

Keep the migration tool active while you’re in compatibility mode. If you deactivate it, old shortcodes and Form widgets show nothing, and code that reads v2’s $searchandfilter global stops with a fatal error. The tool warns you first.

Check Your Site Afterwards

Purge your page cache, then check these in a private window:

  • Each page with a search form shows its fields and results.
  • Filtering, searching, sorting and pagination give the results you expect.
  • With Ajax, results update without reloading the page.
  • Saved links, e.g. ?_sft_category=news, still filter.
  • Widgets and Elementor pages show their form and results.
  • Each language shows its translated form and labels.
  • In Search & Filter → Queries, no query is left without fields.

Going Back to v2

You can switch back to Search & Filter Pro v2 at any time until you delete it. Click Switch back to v2 above the steps. It switches Search & Filter v3 off, switches Pro v2 back on, and puts your pages back as they were. Your new queries are kept, so switching again later is quick.

Switch back to Search & Filter Pro v2: the confirmation, then the Paused screen showing v3 switched off, Pro v2 active and the pages restored
Switching back asks first, then puts your pages back.

If you edited a page after the update, the tool asks how to put it back: just the v2 links (recommended), the full backup, or leave it as it is.

Restore my pages puts your pages back without switching to v2, so they show nothing for the old forms. To go back to v2, use Switch back to v2 instead.

Troubleshooting

A step that fails says what went wrong, whether anything changed, and what to do, with what you can do next, eg. Continue the migration, Try again or Switch back to v2. A problem found in step 1 changes nothing. If you contact support, turn on Developer view under the step and include what it shows.

License problems
You seeDo this
Pro v2 has no license keyEnter your key on Pro v2’s license screen, then try again.
Your license expiredClick Renew your license, which opens the store’s checkout, then click Check again.
Your license isn’t active on this siteActivate it on Pro v2’s license screen, then try again.
Your license is disabled, or the key isn’t validCheck your key, or contact support.
The license server has had too many checks from this siteWait a few minutes, then try again.
After the switch, your license couldn’t be connectedConnect it in the License section of Search & Filter → Dashboard.
WordPress or PHP is too old

Search & Filter v3 needs WordPress 6.8 and PHP 7.4 or later. Update WordPress, or ask your host to update PHP, then click Check again.

WordPress can’t write to its folders

Ask your host to let WordPress write to wp-content and wp-content/plugins, or add your FTP details to wp-config.php. If file changes are turned off, remove DISALLOW_FILE_MODS from wp-config.php while you migrate. Then try again.

A folder is already taken
You seeDo this
A search-filter-pro-v2 folder is already thereUsually a copy from an earlier attempt or a manual backup. Move it out of the plugins folder, then run the check again.
The search-filter or search-filter-pro folder holds something other than Search & Filter v3Check what’s in that folder. If it isn’t Search & Filter v3, move it out of the plugins folder, then click Check again. Never delete your Search & Filter Pro v2 folder: the migration renames it to search-filter-pro-v2 itself.
Pro v2 is installed more than onceDelete the copies that aren’t in search-filter-pro. The message lists them.

Don’t upload Search & Filter Pro v3 from the Plugins screen yourself. Pro v2 and Pro 3 use the same folder, so WordPress replaces v2 and your pages show shortcode text. Let the tool install it.

Search & Filter v3 can’t be downloaded

Check that your site can connect to license.searchandfilter.com (a firewall may block it, so ask your host), then try again. If the store doesn’t have the version the tool needs yet, try again later.

An older Search & Filter v3 is installed

The tool needs Search & Filter 3.3.1 or later. Update Search & Filter and Search & Filter Pro on the Plugins screen, then open the migration screen again.

The run was interrupted

Open Tools → Search & Filter Migration again and click Continue the migration. The run picks up where it stopped. If it keeps pausing, ask your host about PHP time and memory limits.

  • Try again runs the failed step again. Fix the cause first.
  • Stop the migration here ends the run, so a new one can start. It asks first, and what it changed stays.
  • Switch back to v2 ends the run and puts your site back on Pro v2.
Some forms weren’t converted
You seeDo this
Forms that couldn’t be convertedClick Try again, or Continue without these forms and convert them later.
Queries with no fieldsAdd their fields in Search & Filter → Queries.
You changed a v2 form sinceClick Convert my forms and update my pages again.
Translations or integrations are waiting

If the site is missing something your WPML or Polylang translations need, the forms convert without them, and Review lists them. Install and activate what each row names, then click Move the translations now on Review. It skips the forms already converted.

If an integration’s plugin isn’t active, e.g. Relevanssi, activate it, then switch on its integration in Search & Filter → Integrations.

Some pages weren’t updated

Review lists each link it didn’t update, under Pages with a link left for you, and why. Most often the form isn’t converted yet: convert it, then update your pages again. Links inside a block’s settings need editing by hand.

For Developers

WP-CLI commands

The commands run the same steps as the screen. Run them as an administrator with --user.

CommandDoes
wp search-filter-v2-migrator run --dry-run --user=adminRuns the check. Changes nothing.
wp search-filter-v2-migrator run --agree=deactivate-v2,update-pages --user=adminRuns the migration.
wp search-filter-v2-migrator run --flow=switch-to-v2 --user=adminRuns another flow: switch-to-v2, switch-to-v3, restore-pages, delete-v2 or clean-up-v2.
wp search-filter-v2-migrator resume / retry / abandonResumes, retries or abandons the stored run.
wp search-filter-v2-migrator compat statusLists what keeps the site in compatibility mode.
Custom code that uses v2

Compatibility mode keeps v2’s hooks working and lists each use with its file and line. Move each to its Search & Filter v3 equivalent:

v2Search & Filter v3
sf_edit_query_args, sf_apply_custom_filtersearch-filter/query/query_args
sf_display_fieldsearch-filter/fields/field/render/output
sf_results_urlsearch-filter/frontend/data
'search_filter_id' => 12'search_filter_query_id' => 34
search-filter/12.phpsearch-filter/34.php or search-filter/results.php
$searchandfilterNo equivalent: remove the code

v2’s jQuery events become Search & Filter v3’s events:

document.addEventListener( 'search-filter/mount', () => {
	const query = window.searchAndFilter.frontend.queries.get( 34 );
	query.on( 'get-results/start', () => { /* was sf:ajaxstart */ } );
	query.on( 'get-results/finish', () => { /* was sf:ajaxfinish */ } );
} );

FAQ

Will my site go down?

Only briefly. Your search forms are unavailable while the migration runs, usually under a minute. See Before You Start.

Does the check change anything?

No. Step 1 is a dry run.

Do I need a new license?

No. The tool copies your Pro v2 license key into Search & Filter v3 and connects it.

Can I edit the queries before updating my pages?

Yes. On step 2, tick Stop before updating my pages.

Can I run it again?

Yes. Convert my forms and update my pages again converts only the v2 forms that changed, and keeps fields you added yourself.

What happens to Pro v2’s data?

It stays in the database until you clean it up in step 4.

Does it change my theme or custom code?

No. It lists what to change, with the file and line.

Do I need to keep the migration tool installed?

Yes, while your site is in compatibility mode, and while you may want to switch back to v2. After that, you can delete it.

What about Search & Filter 1.x, the free plugin?

This version doesn’t migrate it. If it’s installed beside Pro v2, the switch replaces it with Search & Filter v3, and its forms need rebuilding.

Does it work on multisite?

No. The tool detects a network and stops before changing anything.