Organize categories, tags, and site structure with the AI Agent for WordPress
-
- What this tutorial covers
- Before you start: prerequisites and what won’t work
- Create new categories and tags
- Rename and delete categories and tags
- Change slugs without breaking SEO equity
- Merge categories and restructure parent-child hierarchies
- Reassign posts to different categories or tags
- Build navigation menus: primary, secondary, and footer
- Common mistakes and how to avoid them
- Frequently asked questions
- How do I undo changes the WordPress Agent makes to my categories or menus?
- Can the WordPress Agent merge categories without losing posts?
- Will rebuilding my navigation menus break my site’s existing links?
- Does the WordPress Agent work with custom post type taxonomies?
- How many posts can the WordPress Agent reassign in a single prompt?
Use the AI Agent for WordPress in SiteGround AI Studio to create, merge, restructure, and clean up WordPress categories, tags, and menus through natural language prompts.
The AI Agent for WordPress handles taxonomy and navigation tasks that normally require dozens of clicks in WP Admin. You describe the change in plain English, the agent reads your current site structure, executes the change, and reports back with what was modified. Bulk operations that can take hours finish in minutes.
What this tutorial covers
- Creating, renaming, and deleting categories and tags through prompts
- Changing slugs without breaking SEO equity
- Merging duplicate categories and rebuilding parent-child hierarchies
- Reassigning posts in bulk to new categories or tags
- Building and restructuring primary, secondary, and footer navigation menus
- Example prompts you can copy and adapt for each task
Before you start: prerequisites and what won’t work
You need an active SiteGround AI Studio plan with a WordPress site connected to it. The AI Agent for WordPress must be authorized to access the target site, which happens when you connect the site inside AI Studio for the first time.
This tutorial will not help you if:
- Your site is not connected to SiteGround AI Studio — the agent only operates on connected WordPress installations
- You use highly-customized taxonomies registered by themes or plugins that the agent does not recognize
- You need to modify navigation menus that are theme-locked or hardcoded into block templates rather than managed through Appearance > Menus or the Site Editor
Create new categories and tags
Open AI Studio, select your connected WordPress site, and start a chat with the agent. Describe what you want to create, including the parent category if applicable. The agent will create the items and confirm the new IDs and slugs.
Single creation works fine, but the real value is bulk creation. You can create 10 categories with descriptions in one prompt, or seed a tag list from a content plan you paste into the chat. You can also assign categories and tags as part of creating a new post — see Create new blog posts and pages for that workflow.
Example prompts:
Create three new categories: “Tutorials,” “Case Studies,” and “News.” Add a short description for each so they show up well on archive pages.
Create the following tags from this list, but skip any that already exist: SEO, on-page SEO, technical SEO, link building, local SEO, schema markup, Core Web Vitals.
Create a new category called “WooCommerce” as a child of the existing “Ecommerce” category.
The agent returns the IDs and slugs of every item created. Cross-check by opening Posts > Categories or Posts > Tags in WP Admin. The new items should appear with the descriptions and parent assignments you specified.
Rename and delete categories and tags
Renaming is safe. The AI Agent for WordPress updates the display name without changing the slug, so existing URLs keep working. Deletion is destructive and requires Power Mode — see Permissions, Power Mode, and safety controls for how to enable it. Posts assigned to a deleted category fall back to “Uncategorized” unless you tell the agent to reassign them first. Always pair a delete with a reassignment prompt for any category that has posts attached.
Example prompts:
Rename the category “WP Tips” to “WordPress Tips.” Keep the slug as wp-tips so existing URLs don’t break.
Delete the tag “outdated-2023” but first move every post tagged with it to the tag “archive.”
Delete the empty categories “Test,” “Draft Category,” and “Misc.” Confirm there are zero posts in each before deleting.
Ask the agent to confirm the post count for any category or tag before deletion. A simple prompt like “How many posts are in the ‘Misc’ category?” prevents accidental data loss.
Change slugs without breaking SEO equity
Slug changes affect URLs, which affects SEO. The agent will change a slug on request, but a slug change without a redirect creates a 404 for every existing inbound link to the old URL. Always pair a slug change with a redirect prompt.
Example prompts:
Change the slug of the “Web Design” category from /web-design/ to /web-design-services/. Add a 301 redirect from the old slug to the new one.
Update the slug of the tag “wp” to “wordpress” and redirect all old tag URLs to the new ones.
List every category whose slug doesn’t match its name, and propose corrected slugs that follow my site’s lowercase-hyphenated convention.
To verify it worked, visit the old category URL in an incognito window. You should see a 301 redirect to the new URL, not a 404 page.
Merge categories and restructure parent-child hierarchies
Merging is one of the most useful, and most error-prone, taxonomy operations in WordPress. The agent handles three things in a single merge prompt:
- it moves all posts from the source category to the target,
- it sets up a 301 redirect from the old category URL to the new one, and
- it deletes the empty source category.
Hierarchy restructuring works the same way. You describe the new parent-child relationships, and the agent re-parents the categories without affecting the posts assigned to them.
Example prompts:
Merge “WP Tips” and “WordPress Tips” into a single category called “WordPress Tips.” Reassign all posts and add a 301 redirect from /wp-tips/ to /wordpress-tips/.
Make “Hosting” a parent category of “Shared Hosting,” “Cloud Hosting,” and “Dedicated Hosting.” Keep all posts in their current child categories.
Restructure my taxonomy: I want a top-level category called “WordPress” with three children: “Plugins,” “Themes,” and “Performance.” Move existing categories under it where the topic fits, and show me your plan before executing.
The “show me your plan before executing” pattern is critical for restructure prompts. The agent will return a proposed structure as a tree, and you can approve or adjust before any change happens. This is the single most useful safety habit when using the agent when working on hierarchies.
Reassign posts to different categories or tags
Bulk post reassignment is the second-biggest time saver after merging. Instead of opening each post individually, you describe the criteria and the agent handles the assignment. The criteria can be a current category or tag, an author, a date range, a keyword in the title, or a combination.
Example prompts:
Move every post currently in the “News” category that was published before January 2024 to the “News Archive” category.
Add the tag “beginner” to every post tagged with “tutorial” that has fewer than 800 words.
Find every post that mentions “WooCommerce” in the title but is not currently in the “Ecommerce” category, and add the “Ecommerce” category to those posts.
Remove the tag “draft-idea” from every published post — but only published posts, not drafts.
The agent returns the count of posts modified and a sample of post titles. Spot-check 3 to 5 posts in WP Admin to confirm the new assignments are correct. For large operations (50+ posts), ask the agent to give you a CSV-style list of every post it changed so you have a record. If you also need to update the content of reassigned posts, see Edit and update existing content.
Build navigation menus: primary, secondary, and footer
The AI Agent for WordPress builds and edits menus through Appearance > Menus or the block-based Site Editor, depending on your active theme. You can create a new menu, add items in a specific order, nest items under parents, assign the menu to a theme location, and remove items in bulk.
The agent works with three types of menu items: pages, posts, custom links, and category archive links. It will automatically use the correct URL for each type, so you don’t need to paste URLs in your prompts.
Example prompts for primary menus:
Build a primary navigation menu with these items in order: Home, Services (with children: Hosting, Migration, Support), About, Blog, Contact. Assign it to the “Primary Menu” theme location.
Add a “Pricing” page to the primary menu, between “Services” and “About.”
Example prompts for secondary and footer menus:
Create a footer menu called “Legal” with these items: Privacy Policy, Terms of Service, Cookie Policy, GDPR. Assign it to the footer theme location.
Build a secondary menu of category archive links: “Tutorials,” “Case Studies,” “News,” and “Reviews.” Place it in the sidebar widget area.
Audit my primary menu and flag any items that point to deleted pages, draft pages, or pages with no published content.
That last prompt — auditing for broken or stale menu items — is one of the most underused capabilities of the AI Agent for WordPress. Run it monthly on every site you manage.
Common mistakes and how to avoid them
The AI Agent for WordPress inside SiteGround AI Studio turns an hours-long taxonomy cleanup into a 30-minute prompt session, with safer execution and a full audit trail of what changed. Here is a recap of the most common mistakes to avoid:
-
Skipping the “show me your plan” step on bulk operations
The WordPress Agent will execute exactly what you describe, even if what you describe has consequences you didn’t fully think through. For any prompt that affects more than 10 posts or modifies the hierarchy, ask the agent to return a plan before executing. The two extra seconds it takes to review the plan prevents the 30 minutes it takes to recover from a wrong bulk operation.
-
Changing slugs without redirects
Every slug change is a URL change, and every URL change without a redirect costs you SEO equity and creates 404s for inbound links. Pair every slug change prompt with an explicit “add a 301 redirect from the old slug to the new one” instruction. Do not assume the agent does this automatically.
-
Deleting categories that have posts assigned
Deleting a category that contains posts moves those posts to “Uncategorized” by default. On a site with 200 posts, this can scatter your archive page in seconds. Always ask the agent to either confirm zero posts exist in the category, or to reassign the posts to a target category as part of the same prompt.
-
Treating menu items as URLs instead of references
When you ask the agent to add a page to a menu, refer to the page by name, not by URL. The agent resolves the page reference to its current URL automatically, and that reference will keep working even if you later change the page slug. Hardcoded URLs in custom menu links don’t get updated when slugs change.
Frequently asked questions
How do I undo changes the WordPress Agent makes to my categories or menus?
The agent does not have a built-in undo function for taxonomy changes. To roll back, you have two options: ask the agent to reverse the change explicitly (which works for renames and reassignments but not for completed merges), or restore from a backup. SiteGround keeps daily backups by default and the SiteGround Premium Backup Service adds hourly snapshots, so you can restore a pre-change state with limited data loss.
Can the WordPress Agent merge categories without losing posts?
Yes. A merge prompt automatically reassigns every post from the source category to the target before the source is deleted, so no posts get orphaned or fall back to “Uncategorized.” The agent reports the count of posts moved as part of the merge confirmation. For high-stakes merges, ask the agent to return the list of post IDs being reassigned so you have an audit trail.
Will rebuilding my navigation menus break my site’s existing links?
Rebuilding a menu does not affect the URLs of the pages or posts the menu links to. It only changes which items appear in the menu and in what order. Inbound links to your pages keep working regardless of what’s in your navigation. The only risk is if you delete the page itself, which is a separate action from removing it from a menu.
Does the WordPress Agent work with custom post type taxonomies?
The agent supports the standard WordPress taxonomies (categories and tags) on all post types by default. Custom taxonomies registered by themes or plugins are supported on a case-by-case basis depending on how the taxonomy is registered.
How many posts can the WordPress Agent reassign in a single prompt?
There is no documented hard limit on bulk reassignments, but very large operations (1,000+ posts) are best split into smaller prompts for safer execution and easier review.