Description
Do you need to back up your post tags, migrate them to another site, or perform a bulk update in a spreadsheet? Post Tags Export/Import is the perfect tool for the job.
This plugin provides a simple interface under “Tools” in your WordPress admin area to handle two key tasks:
- Export Posts to JSON: With a single click, you can download a clean JSON file containing the
title,slug, and an array oftagsfor every post on your site. - Import Tags from JSON: Upload a JSON file (in the same format as the one you exported) to bulk update tags. The plugin uses the post
slugto identify which post to update and replaces its existing tags with the ones from the file.
This is incredibly useful for:
* Backing up and restoring tag structures.
* Editing tags offline in bulk using a text editor or script.
* Migrating tag information between staging and production environments.
* Quickly applying a new set of tags to hundreds of posts.
The plugin is designed to be lightweight, secure, and easy to use.
Installation
You can install the plugin in a few simple steps:
From your WordPress dashboard (easiest):
1. Navigate to ‘Plugins’ > ‘Add New’.
2. Search for ‘Post Tags Export/Import’.
3. Click ‘Install Now’ and then ‘Activate’.
Manual Installation:
1. Download the plugin zip file from the repository.
2. Unzip the file to get the post-tags-export-import directory.
3. Upload the post-tags-export-import directory to the /wp-content/plugins/ directory on your server.
4. Go to the ‘Plugins’ page in your WordPress admin and click ‘Activate’ for the “Post Tags Export/Import” plugin.
After Activation:
1. Navigate to ‘Tools’ > ‘Post Tags Export/Import’ to access the plugin’s page.
FAQ
-
Where do I find the settings page?
-
You can find the plugin’s page in your WordPress admin dashboard under Tools -> Post Tags Export/Import.
-
What is the format of the JSON file?
-
The JSON file is an array of objects. Each object represents a post and must contain a
slug(string) andtags(array of strings). Thetitleis included for reference in the export but is not used during the import.Example:
[
{
“title”: “My First Blog Post”,
“slug”: “my-first-blog-post”,
“tags”: [“news”, “updates”]
},
{
“title”: “A Guide to WordPress”,
“slug”: “a-guide-to-wordpress”,
“tags”: [“wordpress”, “guide”, “tutorial”]
}
] -
What happens if a slug in my import file doesn’t exist on my site?
-
The plugin will simply skip that entry. The success message after the import will tell you how many posts were updated and how many were skipped.
-
The import process replaces all existing tags on a post with the tags provided in the JSON file for that post’s slug. If the “tags” array for a post is empty in the file, it will remove all tags from that post.
-
Will this plugin work with Custom Post Types?
-
Currently, the plugin is designed to work only with the default ‘post’ post type.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Post Tags Export/Import” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Post Tags Export/Import” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.4.2
- Sanitize early, Escape Late, Always Validate
1.4.1
- Update readme.txt and readme.md for clarity.
- Verified compatibility up to WordPress 6.8.
1.4.0
- Security Enhancement: Refactored all function names with the
PTIMPEX_prefix to prevent conflicts. - Added
Requires at leastandRequires PHPheaders for better dependency management. - Minor code cleanup and comment improvements.
1.0.0
- Initial release.
- Functionality to export all posts to JSON.
- Functionality to import tags from JSON, replacing existing tags.

