How to Import and Export or Duplicate Navigation Menus in WordPress

If you are wanting to export a navigation menu from one WordPress website to another, then you are in the right place. Maybe you are wanting to duplicate a menu to make it easier to re-create a similar type of menu? Well, we got this covered in this post as well.

Unfortunately, the default WordPress import/export feature only allows you to transfer the menu as part of the full site transfer, you can’t just do this on its own.

In this post, we’ll explain how you can easily import/export navigation menus in WordPress which will be a real time-saver!

Step 1. Export and Import Navigation Menus in WordPress

We found the best tool for the job is using the WPS Menu Exporter plugin. Once installed and activated you can now go to Tools » Export. You should now see an additional option to export just the Navigation Menu Items. This will include your menu and all the pages that are linked from your menu. If you have any posts in your menu, those will be includes along with any comments within them as well.

Select the Navigation Menu Items radio button and then click Download Export File button at the bottom.

This will create a download with just the menu to your computer which is stored as an XML file.

Step 2. Importing Your WordPress Menu to Your New Site

Now you can go to your new site and go to Tools » Import, select the file you exported in the previous step. If it’s not already installed, you will have to install the WordPress importer. When you visit the page, it will show an option to Install Now.

Once you’ve installed the WordPress importer, you should see a Run Importer link in place of the Install Now link.

After you click on this link, you’ll see the Import WordPress screen. Here, you’ll need to click the Choose file button so you can select the .xml file you downloaded earlier.

Once you’ve selected your file, go ahead and click the Upload file and import button.

You’ll then get a scrreen when you’ll be asked to Assign Authors. The default option is to import the original author. Although, it makes more sense to select an existing Administrator user as the author of the imported content on the new website. To do this, just select the user from the dropdown menu.

If you plan to re-use the content of the pages themselves, then you’ll also want to check the Download and import file attachments box. This means that images will be included in the import.

Once you’re happy with your settings, click the Submit button at the bottom of the page.

Upon completion, you’ll see a page where it says Import WordPress - All Done. Have Fun!.

You can now view your new menu you exported from your old website by going to Appearance » Menus

You can also click on the Pages tab in your WordPress dashboard to check out the new pages that have been imported along with the menu.

And that’s it, pretty simple process right?

Duplicating a Menu

So this part isn’t associated with the previous tutorial. This is simply if you are wanting to duplicate a menu on the same website. We’ve used this a bunch of times, especially when creating Header / Footer menus which are very similar, it’s just a big time saver really.

For this, we use the Duplicate Menu plugin.

After you have installed and activated the plugin you can now go to Appearance » Duplicate Menu.

On the next page, you will have an option to select a menu you wish to duplicate, and then provide the new menu name as shown below:

After clicking the Duplicate Menu button, your new menu will appear in Appearance » Menu with the new name you created. You can. now customise this to your exact needs. Very quick and simple right?

Well we hope you enjoyed this article, if you have any questions, feel free to get in touch or drop a comment below.

Nathan da Silva - Profile

Posted by: Nathan da Silva

Nathan is the Founder of Silva Web Designs. He is passionate about web development, website design and basically anything digital related. His main expertise is with WordPress, Magento, Shopify as well of many other frameworks. Whether you need responsive design, SEO, speed optimisation or anything else in the world of digital then get in touch. If you would like to work with Nathan, simply drop him an email at [email protected]

It’s good to share

How to Import WordPress Posts Including Images From One WordPress Site To Another

Today, we are going to show you how to import the images from WordPress posts from one website to another.

I’m sure you have tried going to Tools –> Import / Export and checking the box to include images and then you see that only the post content gets imported right?

Why the images do not get imported

The reason for this is the export step that causes issues with the image attachment. The WordPress export feature doesn’t include the ‘attachment’ post type unless you select the All content export option. If you are simply just trying to export posts from one website to another; you will lose your attachments, unfortunately.

If you do a compare from exporting just Posts and All content, the issue is quite obvious. Within the first file; in which we specified we only wanted Published statuses, the attachments are referenced in the posts, but the attachment table is ignored. In the second file, in which we exported All Statuses; the attachment table is included. In other words, the WordPress export function defines Attachment posts as something other than Published. Seems a bit of a pain but fortunately, we have a solution to the problem.

Imagine if you had a blog with 900 posts all with featured images and images within the posts and then there wasn’t a way to import this to a new site? Well, whenever there is a problem, there is always a good solution 😉

How to get your images into your new website…

Okay so if you are only wanting to import/export posts with images, then we recommend using the Auto Upload Images plugin, which can be used even to upload the images after you’ve imported the posts already.

What exactly does this plugin do?

  • It looks for image URLs in your posts (imported posts do still have image URLs in them, but they point to the site the content was exported from);
  • It then gets those external images and uploads them to the local WordPress uploads directory and adds the images to the media library;
  • And finally, it replaces the old image URLs with new URLs.

This process is easy to do and is relatively quick. Once you’ve finished the import, you can remove the plugin once the work is completed.

Step by step process

Step 1: Prepare your export file from the old website

Simply go to Tools > Export and export your posts only.

Step 2: Import your posts into your new website

On your new website, again go to Tools > Import and import the posts you exported. The importer has an option to download and import file attachments, but this won’t work if you’re not migrating all content, so you can simply ignore this option.

Step 3: Install and activate the Auto Upload Images plugin

Download the Auto Upload Images plugin and add it to your plugins folder, or simply search the name in your new website and install and activate the plugin. This will add an option under Settings > Auto Upload Images, but the default settings are all you need.

Step 4: Get the image from your old site into your new site

As of now, the plugin doesn’t have an option to automatically go through your posts and bulk upload all the images. Instead of this, it updates each post individually when you save them. If you have a lot of blog posts on your website, this can be some serious tedious work but we have a solution to that. You can go to your posts overview screen and bulk update your posts.

So what you do here is you select multiple posts and then under Bulk Actions; choose Edit and press the Apply button. Then, without making any adjustments, click the Update button. Depending on your server you may get a timeout as the process runs, so it’s a good idea to do this maybe 20 to 50 posts at a time.

To change the Pagination, you can click Screen Options at the top right and change the default value to the value of your choice.

Step 5: Check your posts and deactivate/uninstall the plugin

When all is done you can check your posts and confirm they now reference local images. You then no longer need the plugin and you can safely deactivate and delete it.

Do note, it’s always a good idea to make a backup of your new site first (at least of your site’s database).

Alternative Solution?

The other solution is to use the Export Featured Images plugin. Although the plugin hasn’t been updated in a very long time, it still works! This will allow you to export the featured images from posts or custom post types (CPT’s) by creating a WordPress XML export including the images.

Step by step process

  • First export the posts from your old site via Tool > Export and Import the posts to your new website
  • Then use this plugin in your old site and go to Tools > Export Featured Images and select post types. This will create a new .xml file for you.
  • Now, in your new site go to Tool and select WordPress Import. Then select the .xml file which you downloaded in the previous step.

And that’s it, just as simple as that. Now you will have all your posts mapped with featured images, pretty sweet right?

If you have found this helpful, or have a different solution you would like us to mention, please leave a comment below!

Happy Coding.

Nathan da Silva - Profile

Posted by: Nathan da Silva

Nathan is the Founder of Silva Web Designs. He is passionate about web development, website design and basically anything digital related. His main expertise is with WordPress, Magento, Shopify as well of many other frameworks. Whether you need responsive design, SEO, speed optimisation or anything else in the world of digital then get in touch. If you would like to work with Nathan, simply drop him an email at [email protected]

It’s good to share

How to Import and Export posts from one website to another

Migrating content from one website to another website can be a headache you may face at some point. Copying specific posts and pages over to a new website involves copying table rows from one database to another. Doing this directly using a database management tool such as PHPMyAdmin requires knowledge of MySQL and a good understanding of how databases operate.

Thankfully, a more practical solution exists. The Official WordPress Importer allows you to easily export content into another website using an XML file. It allows you to move:

  • Posts, pages and other custom post types
  • Comments
  • Custom fields and post meta
  • Categories, tags and terms from custom taxonomies
  • Authors

In this post, I will walk you through the process of exporting and importing content between two WordPress websites. The procedure is simple and does not require any technical knowledge.

You need access to both websites in order to migrate the content successfully. Additionally, I strongly encourage you to take a back up of the database of both websites so that you can restore them if something goes wrong.

Exporting Content To Another Website

The core version of WordPress (i.e. with no plugins installed) has export functionality built-in. You will find the export feature in the main WordPress admin menu in the Tools section.

There are three options available. The first option backs up all content including posts, pages, comments, custom fields, categories and tags.

Alternatively, you can choose to only export posts or pages. You can filter what is exported and only export content from particular categories, authors, date range and publication status.

The export function will also list any other post types that your website uses. For example, I use the Ninja Popups plugin on my personal blog to display pop up messages. As this is a custom post type, WordPress gives me the option of exporting the content for that post type to another website.

Once you have decided what content to export, save the XML export file to your computer.

Importing Content From Another Website

The WordPress import options can also be found in the main admin menu under tools. Import functionality is not built into the WordPress core, however, there is a good reason for this.

In total, WordPress provides eight official import systems. Therefore, WordPress offers these import systems as plugins so that the core version of WordPress is not bloated.

As we are importing from another WordPress website, we need to install the WordPress installer. You can do this by clicking on the WordPress link on the import page. This will bring up a pop-up box that allows you to install the plugin directly through your website.

Once the plugin has been installed and activated, you will be taken to the import page. This is where you upload the XML file you exported earlier.

You will then be given the option to assign imported authors to exist authors on your website. This is useful if the same authors exist on both websites. Alternatively, you can create a new account for each author’s posts.

This page also has an option for downloading attachments. When you select this, WordPress will attempt to import all of the images that are attached to the posts and pages you are importing.

That’s all there is to it. Your content will now be imported into your website. You can verify this by checking your posts and pages.

All information will be identical to what it was before. Therefore, posts and pages will have the same publication date and be assigned to the same categories.

Nathan da Silva - Profile

Posted by: Nathan da Silva

Nathan is the Founder of Silva Web Designs. He is passionate about web development, website design and basically anything digital related. His main expertise is with WordPress, Magento, Shopify as well of many other frameworks. Whether you need responsive design, SEO, speed optimisation or anything else in the world of digital then get in touch. If you would like to work with Nathan, simply drop him an email at [email protected]

It’s good to share