- Getting Started With Starter Templates
- Install Starter Templates
- Premium Starter Templates – Install and Activate License
- Building Your Website With Starter Templates
- How to import Starter Templates with WP CLI Command
- Starter Templates — FAQs and Basics
- Understanding Starter Templates Compatibility Across Themes
- Starter Templates – Patterns
- Why You Need to Connect Starter Templates with ZipWP AI Website Builder
- Create Multilingual WordPress Websites with Starter Templates
- Getting Started With Starter Templates
- Starter Templates Importing
- How to Import A Complete Site With Starter Templates?
- How to Import Single Page With Starter Templates?
- Importing Gutenberg Pages, Patterns, and Kits
- Starter Templates – Elementor Popup
- How to Fix Starter Template Importing Issues
- Building Your Website With Starter Templates
- Starter Templates FAQs
- How to Import A Complete Site With Starter Templates?
- How to Import Single Page With Starter Templates?
- Can I Import Starter Templates Site on Existing Website?
- Importing Gutenberg Pages, Patterns, and Kits
- How to Fix Starter Template Importing Issues
- How to Fix Operation Timed Error While Importing a Starter Template?
- How to Fix Blocked Requests Error While Importing a Starter Template?
- How to Fix 5XX Error While Importing a Starter Template?
- Starter Templates Importing
- How to import Starter Templates with WP CLI Command
- Error 406 while importing Starter Templates on your WordPress website
- We are facing a temporary issue in importing this template
- Required for Import: Enable Elementor’s Flexbox Container
- Select Preferred Page Builder While Importing Classic Starter Templates
- Starter Templates – Free Images from Pixabay
- Starter Templates – Restore Customizer Backup
- Mountain Template With Elementor Theme Style
- Filter to Remove Starter Templates Button on Post Types
- How to Enable/Disable Elementor While Importing Starter Templates
- How to Set Block Editor as the Default Page Builder In Starter Templates
- How to Set Up Your E-Commerce Store With Starter Templates
- How to Enable Single Page Import Button with White Label
- How to Process Refund Requests?
- How To Reset WordPress Installation?
- XMLReader Support Missing – Starter Templates
- cURL Support Missing – Starter Templates
- Required File Permissions Missing – Starter Templates
- Disable Debug Mode – Starter Templates
- Update Required Plugins – Starter Templates
- Starter Templates — FAQs and Basics
- Starter Templates – Required plugins missing
- Plugin Installation Failed – Multisite
- System Requirements – Starter Templates
How to import Starter Templates with WP CLI Command
Introduction
In Starter Templates we can also import the site with WP CLI command. To import the site we need the site ID. We can get site ID by listing all sites. In this doc, we will explain step by step process on how to import starter templates with WP CLI command. If you are not familiar with the WP CLI Command, we recommend you to check the documentation from here.
List Sites
Every site has a unique ID and to get that ID, we will need to list the sites. We can use below command to list the sites:
wp starter-templates list
Result:
$ wp starter-templates list
+-------+-------------------+-----------------------------------------+---------+----------------+--------------+
| id | title | url | type | categories | page-builder |
+-------+-------------------+-----------------------------------------+---------+----------------+--------------+
| 34184 | Nutritionist | //websitedemos.net/nutritionist-01 | free | Business, Free | Elementor |
| 34055 | Law Firm | //websitedemos.net/law-firm-03 | premium | Business | Elementor |
+-------+-------------------+-----------------------------------------+---------+----------------+--------------+
By default, we can see the sites of the current page builder. We can use below options to list specific sites by page builder, category, type, etc.
Functions
You can also add the following options while listing the websites.
- [–per-page=<number>] : No of sites to show in the list. By default it will be showing 10 sites.
- [–search=<text>] : Show the sites from a particular search term.
- [–category=<text>] : Show the site from the specific category.
- [–page-builder=<text>] : List the sites from the particular page builder.
- [–type=<text>] : List the sites from the particular site type.
Example:
$ wp starter-templates list --per-page=1 --type=premium
+-------+-------------------+-----------------------------------------+---------+----------------+--------------+
| id | title | url | type | categories | page-builder |
+-------+-------------------+-----------------------------------------+---------+----------------+--------------+
| 34055 | Law Firm | //websitedemos.net/law-firm-03 | premium | Business | Elementor |
+-------+-------------------+-----------------------------------------+---------+----------------+--------------+
Import Site
We can get the site ID from command `wp starter-templates list` and use that site ID to import the site using the following command
wp starter-templates import
Example:
$ wp starter-templates import 34184
You can also add the below options while importing the starter templates
- <ID> : Site id of the import site.
- –yes : Avoid the prompt message which asks to import the site with y/n options. If we enter y then site import starts. If we enter n then site import prevents. If we don’t want such a prompt message then use –yes which avoids that prompt message.
- [–reset] : If a site is recently imported then with this option the recently imported site data will be removed which includes post, pages, customizer settings, widgets etc.
Example:
$ wp starter-templates import 34184 --reset --yes
Activating Plugins..
Resetting Posts..
We don't respond to the article feedback, we use it to improve our support content.